Player::isAiming: Difference between revisions
(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 |
||
| Line 1: | Line 1: | ||
This property | This property returns true or false of player aim state. | ||
'''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> | ||
Revision as of 19:46, 4 January 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!');