Player::getEntityIsFreeAimingAt: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
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 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.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">player.getEntityPlayerIsFreeAimingAt(entity);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.player.getEntityPlayerIsFreeAimingAt(entity);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''entity:''' Entity handle or object
*'''entity:''' Entity handle or object
Line 8: Line 8:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Player_function_c}}
{{Player_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Revision as of 21:30, 6 May 2017

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.
Returns false if no entity found.

Syntax

mp.game.player.getEntityPlayerIsFreeAimingAt(entity);

Required Arguments

  • entity: Entity handle or object

Return value

  • Boolean

Example

// todo

See also