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

Player::taskAchieveHeading

Материал из RAGE MP Wiki Archive

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