SET_ANIM_SCENE_ORIGIN
Places the origin of animScene at the given position and rotation, using the rotation order.
Signature
void SET_ANIM_SCENE_ORIGIN(AnimScene animScene, float posX, float posY, float posZ, float rotX, float rotY, float rotZ, int order); // 0x020894BF17A02EF2 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | animScene | AnimScene |
| 2 | posX | float |
| 3 | posY | float |
| 4 | posZ | float |
| 5 | rotX | float |
| 6 | rotY | float |
| 7 | rotZ | float |
| 8 | order | int |
Facts
| Name | SET_ANIM_SCENE_ORIGIN |
|---|---|
| Hash | 0x020894BF17A02EF2 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0x020894BF17A02EF2, -- SET_ANIM_SCENE_ORIGIN
0, -- AnimScene animScene
0.0, -- float posX
0.0, -- float posY
0.0, -- float posZ
0.0, -- float rotX
0.0, -- float rotY
0.0, -- float rotZ
0 -- int order
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x020894BF17A02EF2", // SET_ANIM_SCENE_ORIGIN
0, // AnimScene animScene
0.0, // float posX
0.0, // float posY
0.0, // float posZ
0.0, // float rotX
0.0, // float rotY
0.0, // float rotZ
0 // int order
);Function.Call((Hash)0x020894BF17A02EF2, // SET_ANIM_SCENE_ORIGIN
0, // AnimScene animScene
0.0f, // float posX
0.0f, // float posY
0.0f, // float posZ
0.0f, // float rotX
0.0f, // float rotY
0.0f, // float rotZ
0 // int order
);Related ANIMSCENE natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.