GET_ANIM_SCENE_ORIGIN
Writes the origin position and rotation of animScene using the rotation order.
Signature
void GET_ANIM_SCENE_ORIGIN(AnimScene animScene, Vector3* position, Vector3* rotation, int order); // 0xADF1D53F3B1FE0A7 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | animScene | AnimScene |
| 2 | position | Vector3* (out pointer) |
| 3 | rotation | Vector3* (out pointer) |
| 4 | order | int |
Facts
| Name | GET_ANIM_SCENE_ORIGIN |
|---|---|
| Hash | 0xADF1D53F3B1FE0A7 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local position, rotation = Citizen.InvokeNative(0xADF1D53F3B1FE0A7, -- GET_ANIM_SCENE_ORIGIN
0, -- AnimScene animScene
Citizen.PointerValueVector(), -- Vector3* position
Citizen.PointerValueVector(), -- Vector3* rotation
0 -- int order
)
print(position, rotation)const [position, rotation] = Citizen.invokeNative("0xADF1D53F3B1FE0A7", // GET_ANIM_SCENE_ORIGIN
0, // AnimScene animScene
Citizen.pointerValueVector(), // Vector3* position
Citizen.pointerValueVector(), // Vector3* rotation
0 // int order
);
console.log(position, rotation)var positionArg = new OutputArgument();
var rotationArg = new OutputArgument();
Function.Call((Hash)0xADF1D53F3B1FE0A7, // GET_ANIM_SCENE_ORIGIN
0, // AnimScene animScene
positionArg, // Vector3* position
rotationArg, // Vector3* rotation
0 // int order
);
Vector3 position = positionArg.GetResult<Vector3>();
Vector3 rotation = rotationArg.GetResult<Vector3>();Related ANIMSCENE natives
- GET_ANIM_SCENE_BOOL
- GET_ANIM_SCENE_CURRENT_ACTIVE_CAMERA_COUNT
- GET_ANIM_SCENE_ENTITY_LOCATION_DATA
- GET_ANIM_SCENE_FLOAT
- GET_ANIM_SCENE_INT
- GET_ANIM_SCENE_PHASE
- _GET_ANIM_SCENE_DICT
- _GET_ANIM_SCENE_DURATION
- _GET_ANIM_SCENE_OBJECT
- _GET_ANIM_SCENE_PED
- _GET_ANIM_SCENE_PLAYBACK_LIST_PHASE_AUDIO_LOAD_STRESS
- _GET_ANIM_SCENE_RATE
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.