TASK_SEEK_CLEAR_LOS_TO_ENTITY
Tasks ped to move until it has a clear line of sight to entity.
Signature
void TASK_SEEK_CLEAR_LOS_TO_ENTITY(Ped ped, Entity entity, float p2, float p3, float p4); // 0x8D7F2A63688C20A4 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | entity | Entity |
| 3 | p2 | float |
| 4 | p3 | float |
| 5 | p4 | float |
Facts
| Name | TASK_SEEK_CLEAR_LOS_TO_ENTITY |
|---|---|
| Hash | 0x8D7F2A63688C20A4 |
| 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(0x8D7F2A63688C20A4, -- TASK_SEEK_CLEAR_LOS_TO_ENTITY
PlayerPedId(), -- Ped ped
PlayerPedId(), -- Entity entity
0.0, -- float p2
0.0, -- float p3
0.0 -- float p4
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x8D7F2A63688C20A4", // TASK_SEEK_CLEAR_LOS_TO_ENTITY
PlayerPedId(), // Ped ped
PlayerPedId(), // Entity entity
0.0, // float p2
0.0, // float p3
0.0 // float p4
);Function.Call((Hash)0x8D7F2A63688C20A4, // TASK_SEEK_CLEAR_LOS_TO_ENTITY
API.PlayerPedId(), // Ped ped
API.PlayerPedId(), // Entity entity
0.0f, // float p2
0.0f, // float p3
0.0f // float p4
);Related TASK natives
- TASK_GO_STRAIGHT_TO_COORD_RELATIVE_TO_ENTITY
- TASK_GO_TO_ENTITY_WHILE_AIMING_AT_ENTITY
- TASK_GO_TO_ENTITY_WHILE_AIMING_AT_ENTITY_USING_COMBAT_STYLE
- TASK_SEEK_COVER_TO_COORDS
- TASK_SEEK_COVER_TO_COVER_POINT
- TASK_FOLLOW_ENTITY_WHILE_AIMING_AT_ENTITY
- TASK_FOLLOW_TO_OFFSET_OF_ENTITY
- TASK_GO_TO_COORD_WHILE_AIMING_AT_ENTITY
- TASK_GO_TO_COORD_WHILE_AIMING_AT_ENTITY_USING_COMBAT_STYLE
- TASK_GO_TO_ENTITY
- TASK_TURN_PED_TO_FACE_ENTITY
- TASK_SEEK_COVER_FROM_PED
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.