_TRANSITION_SCENARIO_TO_CONDITIONAL_ANIM
Transitions ped from its scenario to the conditional animation clipName in clipsetDict. Returns true on success.
Signature
BOOL _TRANSITION_SCENARIO_TO_CONDITIONAL_ANIM(Ped ped, int scenarioPoint, const char* clipsetDict, const char* clipName, const char* fromConditionalAnim, int flags); // 0x79197F7D2BB5E73A b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | scenarioPoint | int |
| 3 | clipsetDict | const char* |
| 4 | clipName | const char* |
| 5 | fromConditionalAnim | const char* |
| 6 | flags | int |
Facts
| Name | _TRANSITION_SCENARIO_TO_CONDITIONAL_ANIM |
|---|---|
| Hash | 0x79197F7D2BB5E73A |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x79197F7D2BB5E73A, -- _TRANSITION_SCENARIO_TO_CONDITIONAL_ANIM
PlayerPedId(), -- Ped ped
0, -- int scenarioPoint
"text", -- const char* clipsetDict
"text", -- const char* clipName
"text", -- const char* fromConditionalAnim
0 -- int flags
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x79197F7D2BB5E73A", // _TRANSITION_SCENARIO_TO_CONDITIONAL_ANIM
PlayerPedId(), // Ped ped
0, // int scenarioPoint
"text", // const char* clipsetDict
"text", // const char* clipName
"text", // const char* fromConditionalAnim
0, // int flags
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x79197F7D2BB5E73A, // _TRANSITION_SCENARIO_TO_CONDITIONAL_ANIM
API.PlayerPedId(), // Ped ped
0, // int scenarioPoint
"text", // const char* clipsetDict
"text", // const char* clipName
"text", // const char* fromConditionalAnim
0 // int flags
);Related TASK natives
- _TASK_USE_NEAREST_SCENARIO_TO_COORD
- CREATE_SCENARIO_POINT_HASH_ATTACHED_TO_ENTITY
- PLAY_ANIM_ON_RUNNING_SCENARIO
- TASK_GO_STRAIGHT_TO_COORD_RELATIVE_TO_ENTITY
- TASK_USE_NEAREST_SCENARIO_CHAIN_TO_COORD
- TASK_USE_NEAREST_SCENARIO_CHAIN_TO_COORD_WARP
- TASK_USE_NEAREST_SCENARIO_TO_COORD_WARP
- TASK_USE_NEAREST_TRAIN_SCENARIO_TO_COORD_WARP
- _TASK_START_SCENARIO_IN_PLACE_2
- _TASK_USE_SCENARIO_POINT_2
- _TASK_VEHICLE_DRIVE_TO_COORD_2
- _TASK_VEHICLE_DRIVE_TO_DESTINATION_2
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.