_SET_ENTITY_ROTATION_PARALLEL_TO_LINE
Rotates the entity so it lies parallel to the line between the two given points.
Signature
void _SET_ENTITY_ROTATION_PARALLEL_TO_LINE(Entity entity, float x1, float y1, float z1, float x2, float y2, float z2, int p7); // 0xD45BB89B53FC0CFD b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | x1 | float |
| 3 | y1 | float |
| 4 | z1 | float |
| 5 | x2 | float |
| 6 | y2 | float |
| 7 | z2 | float |
| 8 | p7 | int |
Facts
| Name | _SET_ENTITY_ROTATION_PARALLEL_TO_LINE |
|---|---|
| Hash | 0xD45BB89B53FC0CFD |
| 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(0xD45BB89B53FC0CFD, -- _SET_ENTITY_ROTATION_PARALLEL_TO_LINE
PlayerPedId(), -- Entity entity
0.0, -- float x1
0.0, -- float y1
0.0, -- float z1
0.0, -- float x2
0.0, -- float y2
0.0, -- float z2
0 -- int p7
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xD45BB89B53FC0CFD", // _SET_ENTITY_ROTATION_PARALLEL_TO_LINE
PlayerPedId(), // Entity entity
0.0, // float x1
0.0, // float y1
0.0, // float z1
0.0, // float x2
0.0, // float y2
0.0, // float z2
0 // int p7
);Function.Call((Hash)0xD45BB89B53FC0CFD, // _SET_ENTITY_ROTATION_PARALLEL_TO_LINE
API.PlayerPedId(), // Entity entity
0.0f, // float x1
0.0f, // float y1
0.0f, // float z1
0.0f, // float x2
0.0f, // float y2
0.0f, // float z2
0 // int p7
);Related ENTITY natives
- _SET_ENTITY_ANIM_AGE
- _SET_ENTITY_ANIM_CURRENT_TIME
- _SET_ENTITY_ANIM_SPEED
- _SET_ENTITY_ATTACHED_OFFSET
- _SET_ENTITY_CARCASS_TYPE
- _SET_ENTITY_CARRYING_FLAG
- _SET_ENTITY_COORDS_AND_HEADING
- _SET_ENTITY_COORDS_AND_HEADING_NO_OFFSET
- _SET_ENTITY_CUSTOM_PICKUP_RADIUS
- _SET_ENTITY_DISABLE_FIRE
- _SET_ENTITY_FADE_IN
- _SET_ENTITY_FULLY_LOOTED
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.