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

Player::getExtractedDisplacement

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

Gets the offset the specified ped has moved since the previous tick.

If worldSpace is false, the returned offset is relative to the player. That is, if the ped has moved 1 meter right and 5 meters forward, it'll return 1,5,0.

If worldSpace is true, the returned offset is relative to the world. That is, if the ped has moved 1 meter on the X axis and 5 meters on the Y axis, it'll return 1,5,0.

Syntax

<syntaxhighlight lang="javascript">player.getExtractedDisplacement(worldSpace);</syntaxhighlight>

Required Arguments

  • worldSpace: Boolean

Return value

  • Vector3

Example

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

See also