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

Player::taskAchieveHeading

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

Makes the specified ped achieve the specified heading.

pedHandle: The handle of the ped to assign the task to.
heading: The desired heading.
timeout: The time, in milliseconds, to allow the task to complete. If the task times out, it is cancelled, and the ped will stay at the heading it managed to reach in the time.

Syntax

<syntaxhighlight lang="javascript">player.taskAchieveHeading(heading, timeout);</syntaxhighlight>

Required Arguments

  • heading: float
  • timeout: int

Return value

  • Undefined

Example

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

See also