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

Player::taskSmartFlee

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

Makes a ped run away from another ped (fleeTarget).

distance = ped will flee this distance.
fleeTime = ped will flee for this amount of time, set to '-1' to flee forever

Syntax

<syntaxhighlight lang="javascript">player.taskSmartFlee(fleeTarget, distance, fleeTime, p4, p5);</syntaxhighlight>

Required Arguments

  • fleeTarget: Ped handle or object
  • distance: float
  • fleeTime: unknown (to be checked)
  • p4: Boolean
  • p5: Boolean

Return value

  • Undefined

Example

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

See also