Player::getEntityIsFreeAimingAt: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
(Rage-Object -> RAGE:MP Object)
 
Line 1: Line 1:
Returns Rage-Object or World-Object Handle if it found an entity in your crosshair within range of your weapon..<br>Returns undefined if no entity found.
Returns RAGE:MP Object or World-Object Handle if it found an entity in your crosshair within range of your weapon..<br>Returns undefined if no entity found.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">mp.game.player.getEntityIsFreeAimingAt();</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.player.getEntityIsFreeAimingAt();</syntaxhighlight>


===Return value===
===Return value===
*'''entity: Entity object (Rage-Objects)'''
*'''entity: Entity object (RAGE:MP Objects)'''
or
or
*'''int: Entity handle (World-Objects)'''
*'''int: Entity handle (World-Objects)'''

Latest revision as of 08:53, 8 June 2020

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

mp.game.player.getEntityIsFreeAimingAt();

Return value

  • entity: Entity object (RAGE:MP Objects)

or

  • int: Entity handle (World-Objects)

Example

// todo

See also