Player::isClimbing: Difference between revisions
(Created page with "This property returns true or false of player climbing state. '''Note: this property is read-only.''' == Example == <source lang="javascript"> let playerIsClimbing = player.i...") |
No edit summary |
||
| Line 6: | Line 6: | ||
let playerIsClimbing = player.isClimbing | let playerIsClimbing = player.isClimbing | ||
if (playerIsClimbing) | if (playerIsClimbing) | ||
player.outputChatBox('You are climbing now!'); | player.outputChatBox('You are climbing right now!'); | ||
else | else | ||
player.outputChatBox('You are not climbing right now!'); | player.outputChatBox('You are not climbing right now!'); | ||
</source> | </source> | ||
Revision as of 19:46, 4 January 2017
This property returns true or false of player climbing state.
Note: this property is read-only.
Example
let playerIsClimbing = player.isClimbing
if (playerIsClimbing)
player.outputChatBox('You are climbing right now!');
else
player.outputChatBox('You are not climbing right now!');