Player::isAiming: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "This property is true if a player is aiming. <br/> '''Note: this property is read-only.''' ==Example== <source lang="javascript"> </source>")
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
This property is true if a player is aiming.
This property returns true or false of player aim state.
<br/>
 
'''Note: this property is read-only.'''
'''Note: this property is read-only.'''
 
== Example ==
==Example==
<source lang="javascript">
<source lang="javascript">
let playerIsAiming = player.isAiming
if (playerIsAiming)
  player.outputChatBox('You are aiming right now!');
else
  player.outputChatBox('You are not aiming right now!');
</source>


</source>
==See Also==
{{Player_block}}

Latest revision as of 13:48, 17 April 2017

This property returns true or false of player aim state.

Note: this property is read-only.

Example

let playerIsAiming = player.isAiming
if (playerIsAiming)
  player.outputChatBox('You are aiming right now!');
else
  player.outputChatBox('You are not aiming right now!');

See Also