Player::aimTarget: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
m (category)
 
(3 intermediate revisions by 3 users not shown)
Line 5: Line 5:
<source lang="javascript">
<source lang="javascript">
if (player.isAiming)
if (player.isAiming)
   player.outputChatBox('Your aiming target is ' + player.aimTarget);
   player.outputChatBox('Your aim target is ' + player.aimTarget);
</source>
</source>
==See Also==
{{Player_block}}
[[Category:Player API]]
[[Category:Server-side Property]]

Latest revision as of 16:57, 17 May 2019

This property is the aim target of a player.
Note: this property is read-only. If player currently isn't aiming, this property will be last aim target

Example

if (player.isAiming)
  player.outputChatBox('Your aim target is ' + player.aimTarget);

See Also