Player::getEntityIsFreeAimingAt: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
Line 1: Line 1:
Returns TRUE if it found an entity in your crosshair within range of your weapon. Assigns the handle of the target to the *entity that you pass it.<br>Returns false if no entity found.
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.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">mp.game.player.getEntityPlayerIsFreeAimingAt(entity);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.player.getEntityIsFreeAimingAt();</syntaxhighlight>
=== Required Arguments ===
 
*'''entity:''' Entity handle or object
===Return value===
===Return value===
*'''Boolean'''
*'''entity: Entity object (Rage-Objects)'''
or
*'''int: Entity handle (World-Objects)'''
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">

Revision as of 18:58, 18 February 2020

Returns Rage-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-Objects)

or

  • int: Entity handle (World-Objects)

Example

// todo

See also