SET_IK_TARGET
Makes the IK limb ikIndex of ped reach towards the bone boneLookAt of entityLookAt plus an offset, with blend in and out durations.
Signature
void SET_IK_TARGET(Ped ped, int ikIndex, Entity entityLookAt, int boneLookAt, float offsetX, float offsetY, float offsetZ, Any p7, int blendInDuration, int blendOutDuration); // 0xC32779C16FCEECD9 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | ikIndex | int |
| 3 | entityLookAt | Entity |
| 4 | boneLookAt | int |
| 5 | offsetX | float |
| 6 | offsetY | float |
| 7 | offsetZ | float |
| 8 | p7 | Any |
| 9 | blendInDuration | int |
| 10 | blendOutDuration | int |
Facts
| Name | SET_IK_TARGET |
|---|---|
| Hash | 0xC32779C16FCEECD9 |
| 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(0xC32779C16FCEECD9, -- SET_IK_TARGET
PlayerPedId(), -- Ped ped
0, -- int ikIndex
PlayerPedId(), -- Entity entityLookAt
0, -- int boneLookAt
0.0, -- float offsetX
0.0, -- float offsetY
0.0, -- float offsetZ
0, -- Any p7
0, -- int blendInDuration
0 -- int blendOutDuration
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xC32779C16FCEECD9", // SET_IK_TARGET
PlayerPedId(), // Ped ped
0, // int ikIndex
PlayerPedId(), // Entity entityLookAt
0, // int boneLookAt
0.0, // float offsetX
0.0, // float offsetY
0.0, // float offsetZ
0, // Any p7
0, // int blendInDuration
0 // int blendOutDuration
);Function.Call((Hash)0xC32779C16FCEECD9, // SET_IK_TARGET
API.PlayerPedId(), // Ped ped
0, // int ikIndex
API.PlayerPedId(), // Entity entityLookAt
0, // int boneLookAt
0.0f, // float offsetX
0.0f, // float offsetY
0.0f, // float offsetZ
0, // Any p7
0, // int blendInDuration
0 // int blendOutDuration
);Related PED natives
- SET_FORMATION_POSITIONS_TARGET_RADIUS
- SET_PED_CAN_ARM_IK
- SET_PED_CAN_HEAD_IK
- SET_PED_CAN_LEG_IK
- SET_PED_CAN_TORSO_IK
- SET_PED_CAN_TORSO_REACT_IK
- SET_PED_CAN_TORSO_VEHICLE_IK
- SET_PED_LEG_IK_MODE
- SET_PED_TARGET_LOSS_RESPONSE
- _SET_PED_CAN_UNK_BODYPART_IK
- _SET_PED_TARGET_ACTION_DISABLE_FLAG
- SET_AI_MELEE_WEAPON_DAMAGE_MODIFIER
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.