Player::isClimbing: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
Line 4: Line 4:
== Example ==
== Example ==
<source lang="javascript">
<source lang="javascript">
let playerIsClimbing = player.isClimbing
let playerIsClimbing = player.isClimbing()
if (playerIsClimbing)
if (playerIsClimbing)
   player.outputChatBox('You are climbing right now!');
   player.outputChatBox('You are climbing right now!');

Revision as of 22:23, 20 April 2023

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!');

See Also