TASK_LOOK_AT_ENTITY
Tasks ped to look at lookAtTarget for duration milliseconds.
Signature
void TASK_LOOK_AT_ENTITY(Ped ped, Entity lookAtTarget, int duration, int p3, int p4, int p5); // 0x69F4BE8C8CC4796C b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | lookAtTarget | Entity |
| 3 | duration | int |
| 4 | p3 | int |
| 5 | p4 | int |
| 6 | p5 | int |
Facts
| Name | TASK_LOOK_AT_ENTITY |
|---|---|
| Hash | 0x69F4BE8C8CC4796C |
| 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(0x69F4BE8C8CC4796C, -- TASK_LOOK_AT_ENTITY
PlayerPedId(), -- Ped ped
PlayerPedId(), -- Entity lookAtTarget
0, -- int duration
0, -- int p3
0, -- int p4
0 -- int p5
)Citizen.invokeNative("0x69F4BE8C8CC4796C", // TASK_LOOK_AT_ENTITY
PlayerPedId(), // Ped ped
PlayerPedId(), // Entity lookAtTarget
0, // int duration
0, // int p3
0, // int p4
0 // int p5
);Function.Call((Hash)0x69F4BE8C8CC4796C, // TASK_LOOK_AT_ENTITY
API.PlayerPedId(), // Ped ped
API.PlayerPedId(), // Entity lookAtTarget
0, // int duration
0, // int p3
0, // int p4
0 // int p5
);Related TASK natives
- TASK_FOLLOW_ENTITY_WHILE_AIMING_AT_ENTITY
- TASK_GO_TO_ENTITY_WHILE_AIMING_AT_ENTITY
- TASK_GO_TO_ENTITY_WHILE_AIMING_AT_ENTITY_USING_COMBAT_STYLE
- TASK_LOOK_AT_COORD
- TASK_AIM_AT_ENTITY
- TASK_AIM_GUN_AT_ENTITY
- TASK_CLEAR_LOOK_AT
- TASK_FOLLOW_ENTITY_ALONG_WAYPOINT_RECORDING_AT_OFFSET
- TASK_GO_TO_COORD_WHILE_AIMING_AT_ENTITY
- TASK_GO_TO_COORD_WHILE_AIMING_AT_ENTITY_USING_COMBAT_STYLE
- TASK_PLACE_CARRIED_ENTITY_AT_COORD
- TASK_SHOOT_AT_ENTITY
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.