Player::isInCover: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "This property returns true or false of player cover state. == Example == <source lang="javascript"> let playerIsCovering = player.isJumping if (playerIsCovering) player.outp...")
 
No edit summary
Line 1: Line 1:
This property returns true or false of player cover state.
This property returns true or false of player cover state.
'''Note: this property is read-only.'''
== Example ==
== Example ==
<source lang="javascript">
<source lang="javascript">

Revision as of 19:25, 4 January 2017

This property returns true or false of player cover state.

Note: this property is read-only.

Example

let playerIsCovering = player.isJumping
if (playerIsCovering)
  player.outputChatBox('You are in the cover right now!');
else
  player.outputChatBox('You are not in the cover right now!');