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

Entity::isAtCoord

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

Checks if entity is within x/y/zSize distance of x/y/z.

Last three are unknown ints, almost always p7 = 0, p8 = 1, p9 = 0

Syntax

<syntaxhighlight lang="javascript">entity.isAtCoord(xPos, yPos, zPos, xSize, ySize, zSize, p7, p8, p9);</syntaxhighlight>

Required Arguments

  • xPos: float
  • yPos: float
  • zPos: float
  • xSize: float
  • ySize: float
  • zSize: float
  • p7: Boolean
  • p8: Boolean
  • p9: int

Return value

  • Boolean

Example

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

See also