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

Entity::isAt

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

Checks if entity1 is within the box defined by x/y/zSize of entity2.

Last three parameters are almost alwasy p5 = 0, p6 = 1, p7 = 0

Syntax

<syntaxhighlight lang="javascript">entity.isAt(entity2, xSize, ySize, zSize, p5, p6, p7);</syntaxhighlight>

Required Arguments

  • entity2: Entity handle or object
  • xSize: float
  • ySize: float
  • zSize: float
  • p5: Boolean
  • p6: Boolean
  • p7: int

Return value

  • Boolean

Example

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

See also