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

Entity::isOnScreen

Материал из RAGE MP Wiki Archive

Returns true if the entity is in between the minimum and maximum values for the 2d screen coords.
This means that it will return true even if the entity is behind a wall for example, as long as you're looking at their location.
Chipping

Syntax

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

Required Arguments

Return value

  • Boolean

Example

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

See also