Player::isInCover: Difference between revisions
No edit summary |
No edit summary |
||
| Line 4: | Line 4: | ||
== Example == | == Example == | ||
<source lang="javascript"> | <source lang="javascript"> | ||
let | let playerIsInCover = player.isInCover | ||
if ( | if (playerIsInCover) | ||
player.outputChatBox('You are in the cover right now!'); | player.outputChatBox('You are in the cover right now!'); | ||
else | else | ||
player.outputChatBox('You are not in the cover right now!'); | player.outputChatBox('You are not in the cover right now!'); | ||
</source> | </source> | ||
Revision as of 19:26, 4 January 2017
This property returns true or false of player cover state.
Note: this property is read-only.
Example
let playerIsInCover = player.isInCover
if (playerIsInCover)
player.outputChatBox('You are in the cover right now!');
else
player.outputChatBox('You are not in the cover right now!');