Player::aimTarget: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "This property is the aim target of a player. <br/> '''Note: this property is read-only. If player currently isn't aiming, this property will be last aim t...")
 
m (category)
 
(5 intermediate revisions by 3 users not shown)
Line 2: Line 2:
<br/>
<br/>
'''Note: this property is read-only. If player currently [[Player::isAiming|isn't aiming]], this property will be last aim target'''
'''Note: this property is read-only. If player currently [[Player::isAiming|isn't aiming]], this property will be last aim target'''
== Example ==
<source lang="javascript">
if (player.isAiming)
  player.outputChatBox('Your aim target is ' + player.aimTarget);
</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