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

Entity::hasClearLosToInFront

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

Has the entity1 got a clear line of sight to the other entity2 from the direction entity1 is facing.
This is one of the most CPU demanding BOOL natives in the game; avoid calling this in things like nested for-loops

Syntax

<syntaxhighlight lang="javascript">entity.hasClearLosToInFront(entity2);</syntaxhighlight>

Required Arguments

  • entity2: Entity handle or object

Return value

  • Boolean

Example

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

See also