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

Player::getEntityIsFreeAimingAt

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

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