SET_PED_COMBAT_RANGE
Sets the preferred combat range of ped: near, medium or far.
Signature
void SET_PED_COMBAT_RANGE(Ped ped, int range); // 0x3C606747B23E497B b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | range | int |
Facts
| Name | SET_PED_COMBAT_RANGE |
|---|---|
| Hash | 0x3C606747B23E497B |
| 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(0x3C606747B23E497B, -- SET_PED_COMBAT_RANGE
PlayerPedId(), -- Ped ped
0 -- int range
)Citizen.invokeNative("0x3C606747B23E497B", // SET_PED_COMBAT_RANGE
PlayerPedId(), // Ped ped
0 // int range
);Function.Call((Hash)0x3C606747B23E497B, // SET_PED_COMBAT_RANGE
API.PlayerPedId(), // Ped ped
0 // int range
);Related PED natives
- SET_PED_COMBAT_ABILITY
- SET_PED_COMBAT_ATTRIBUTES
- SET_PED_COMBAT_MOVEMENT
- SET_PED_HEARING_RANGE
- SET_PED_ID_RANGE
- SET_PED_SEEING_RANGE
- SET_PED_SHOULD_PLAY_COMBAT_SCENARIO_EXIT
- SET_PED_VISUAL_FIELD_PERIPHERAL_RANGE
- SET_PED_CONFIG_FLAG
- SET_PED_CAN_ARM_IK
- SET_PED_CAN_BE_INCAPACITATED
- SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.