taskLookAtEntity
TASK_LOOK_AT_ENTITY0x69F4BE8C8CC4796CThe GTA V native TASK_LOOK_AT_ENTITY of the TASK namespace, as LS:MP client scripts call it: the global function taskLookAtEntity, in JavaScript and in Lua.
taskLookAtEntity(
ped: Ped,
lookAt: Entity,
duration: number,
flags: number,
priority: number
): voidtaskLookAtEntity(
ped: Ped,
lookAt: Entity,
duration: integer,
flags: integer,
priority: integer
)Usage
JavaScript
taskLookAtEntity(ped, lookAt, duration, flags, priority);Lua
taskLookAtEntity(ped, lookAt, duration, flags, priority)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
lookAt | Entity | number | integer |
duration | int | number | integer |
flags | int | number | integer |
priority | int | number | integer |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
For flags, please refer to taskLookAtCoord.
Reference
- Namespace
- Tasks TASK
- In the game
void TASK_LOOK_AT_ENTITY(Ped ped, Entity lookAt, int duration, int flags, int priority)- Hash
0x69F4BE8C8CC4796C