Player::getPlayerTargetEntity: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
Assigns the handle of locked-on melee target to *entity that you pass it.<br>Returns false if no entity found.
Assigns the handle of locked-on melee target to *entity that you pass it.<br>Returns false if no entity found.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">player.getPlayerTargetEntity(entity);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.player.getPlayerTargetEntity(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]]

Latest revision as of 21:29, 6 May 2017

Assigns the handle of locked-on melee target to *entity that you pass it.
Returns false if no entity found.

Syntax

mp.game.player.getPlayerTargetEntity(entity);

Required Arguments

  • entity: Entity handle or object

Return value

  • Boolean

Example

// todo

See also