taskHeliChase
TASK_HELI_CHASE0xAC83B1DB38D0ADA0The GTA V native TASK_HELI_CHASE of the TASK namespace, as LS:MP client scripts call it: the global function taskHeliChase, in JavaScript and in Lua.
taskHeliChase(
pilot: Ped,
entityToFollow: Entity,
x: number,
y: number,
z: number
): voidtaskHeliChase(
pilot: Ped,
entityToFollow: Entity,
x: number,
y: number,
z: number
)Usage
taskHeliChase(pilot, entityToFollow, x, y, z);taskHeliChase(pilot, entityToFollow, x, y, z)Three consecutive numbers can be given as one vector: { x, y, z } (or [x, y, z]) in JavaScript, a Vector3 in Lua.
taskHeliChase(pilot, entityToFollow, pos);taskHeliChase(pilot, entityToFollow, pos)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
pilot | Ped | number | integer |
entityToFollow | Entity | number | integer |
x | float | number | number |
y | float | number | number |
z | float | number | number |
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.
Ped pilot should be in a heli.
EntityToFollow can be a vehicle or Ped.
x,y,z appear to be how close to the EntityToFollow the heli should be. Scripts use 0.0, 0.0, 80.0. Then the heli tries to position itself 80 units above the EntityToFollow. If you reduce it to -5.0, it tries to go below (if the EntityToFollow is a heli or plane)
NOTE: If the pilot finds enemies, it will engage them, then remain there idle, not continuing to chase the Entity given.
Reference
- Namespace
- Tasks TASK
- In the game
void TASK_HELI_CHASE(Ped pilot, Entity entityToFollow, float x, float y, float z)- Hash
0xAC83B1DB38D0ADA0