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

Entity::getOffsetFromGivenWorldCoords

Материал из RAGE MP Wiki Archive
Версия от 17:55, 1 мая 2024; imported>Shr0x (See also)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Converts world coords (posX - Z) to coords relative to the entity

Example:
posX is given as 50
entity's x coord is 40
the returned x coord will then be 10 or -10, not sure haven't used this in a while (think it is 10 though).

Syntax

<syntaxhighlight lang="javascript">entity.getOffsetFromGivenWorldCoords(posX, posY, posZ);</syntaxhighlight>

Required Arguments

  • posX: float
  • posY: float
  • posZ: float

Return value

  • Vector3

Example

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

See also