_SET_ENTITY_ANIM_AGE
Sets an entity animation age/alpha value.
Hash
0xC0EDEF16D90661EERuntime name
SetEntityAnimAgeNamespaceENTITY
SideClient
NameCommunity guess
Docs
Since build1207
Also known as
_SET_ENTITY_FLAME_INTENSITYSignature
void _SET_ENTITY_ANIM_AGE(Entity entity, float alpha);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
alpha | float | — |
Returns void
Description
Sets an entity animation age/alpha value.
Observed in scripts with torch weapon entities. alpha controls the animation age where 0.0 is the start and 1.0 is the end.
Sets the intensity of the flames for a torch
Usage
SetEntityAnimAge(entity, alpha)
-- always works, by hash
Citizen.InvokeNative(0xC0EDEF16D90661EE, entity, alpha)JavaScript and C#
SetEntityAnimAge(entity, alpha);
// by hash
Citizen.invokeNative('0xC0EDEF16D90661EE', entity, alpha + 0.0000001);Function.Call((Hash)0xC0EDEF16D90661EE, entity, alpha);- Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason. - The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
alloc8or RDR3 NativeDB · VORPCORE RDR3natives
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.