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

Player::getEntityIsFreeAimingAt

Материал из RAGE MP Wiki Archive
Версия от 08:53, 8 июня 2020; imported>Bonus (Rage-Object -> RAGE:MP Object)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Returns RAGE:MP Object or World-Object Handle if it found an entity in your crosshair within range of your weapon..
Returns undefined if no entity found.

Syntax

<syntaxhighlight lang="javascript">mp.game.player.getEntityIsFreeAimingAt();</syntaxhighlight>

Return value

  • entity: Entity object (RAGE:MP Objects)

or

  • int: Entity handle (World-Objects)

Example

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

See also