Player::getEntityIsFreeAimingAt: Difference between revisions

From RAGE Multiplayer Wiki
(Rage-Object -> RAGE:MP Object)
 
(One intermediate revision by one other user not shown)
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: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.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:MP Objects)'''
or
*'''int: Entity handle (World-Objects)'''
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">

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