taskGoToCoordWhileAimingAtEntity
TASK_GO_TO_COORD_WHILE_AIMING_AT_ENTITY0xB2A16444EAD9AE47The GTA V native TASK_GO_TO_COORD_WHILE_AIMING_AT_ENTITY of the TASK namespace, as LS:MP client scripts call it: the global function taskGoToCoordWhileAimingAtEntity, in JavaScript and in Lua.
taskGoToCoordWhileAimingAtEntity(
ped: Ped,
x: number,
y: number,
z: number,
aimAtID: Entity,
moveBlendRatio: number,
shoot: boolean,
targetRadius: number,
slowDistance: number,
useNavMesh: boolean,
navFlags: number,
instantBlendToAim: boolean,
firingPattern: Hash,
time: number
): voidtaskGoToCoordWhileAimingAtEntity(
ped: Ped,
x: number,
y: number,
z: number,
aimAtID: Entity,
moveBlendRatio: number,
shoot: boolean,
targetRadius: number,
slowDistance: number,
useNavMesh: boolean,
navFlags: integer,
instantBlendToAim: boolean,
firingPattern: Hash,
time: integer
)Usage
JavaScript
taskGoToCoordWhileAimingAtEntity(
ped, x, y, z, aimAtID, moveBlendRatio, shoot, targetRadius, slowDistance, useNavMesh,
navFlags, instantBlendToAim, firingPattern, time
);Lua
taskGoToCoordWhileAimingAtEntity(
ped, x, y, z, aimAtID, moveBlendRatio, shoot, targetRadius, slowDistance, useNavMesh,
navFlags, instantBlendToAim, firingPattern, time
)Three consecutive numbers can be given as one vector: { x, y, z } (or [x, y, z]) in JavaScript, a Vector3 in Lua.
JavaScript · with vectors
taskGoToCoordWhileAimingAtEntity(
ped, pos, aimAtID, moveBlendRatio, shoot, targetRadius, slowDistance, useNavMesh, navFlags,
instantBlendToAim, firingPattern, time
);Lua · with vectors
taskGoToCoordWhileAimingAtEntity(
ped, pos, aimAtID, moveBlendRatio, shoot, targetRadius, slowDistance, useNavMesh, navFlags,
instantBlendToAim, firingPattern, time
)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
x | float | number | number |
y | float | number | number |
z | float | number | number |
aimAtID | Entity | number | integer |
moveBlendRatio | float | number | number |
shoot | BOOL | boolean | boolean |
targetRadius | float | number | number |
slowDistance | float | number | number |
useNavMesh | BOOL | boolean | boolean |
navFlags | int | number | integer |
instantBlendToAim | BOOL | boolean | boolean |
firingPattern | Hash | number | integer |
time | int | number | integer |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Reference
- Namespace
- Tasks TASK
- In the game
void TASK_GO_TO_COORD_WHILE_AIMING_AT_ENTITY(Ped ped, float x, float y, float z, Entity aimAtID, float moveBlendRatio, BOOL shoot, float targetRadius, float slowDistance, BOOL useNavMesh, int navFlags, BOOL instantBlendToAim, Hash firingPattern, int time)- Hash
0xB2A16444EAD9AE47