Перейти к содержанию

Player::taskHeliChase

Материал из RAGE MP Wiki Archive
Версия от 23:40, 6 мая 2017; imported>Marty uploader (yay)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Ped pilot should be in a heli.
EntityToFollow can be a vehicle or player.

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.

Syntax

<syntaxhighlight lang="javascript">player.taskHeliChase(entityToFollow, x, y, z);</syntaxhighlight>

Required Arguments

  • entityToFollow: Entity handle or object
  • x: float
  • y: float
  • z: float

Return value

  • Undefined

Example

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also