Player::isClimbing: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This property returns true or false of player climbing state.
This property returns true or false of player climbing state.


'''Note: this property is read-only.'''
'''Note: TypeScript types are wrong - this is not a boolean, but a method.'''
== 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!');
Line 10: Line 10:
   player.outputChatBox('You are not climbing right now!');
   player.outputChatBox('You are not climbing right now!');
</source>
</source>
==See Also==
{{Player_block}}

Latest revision as of 22:24, 20 April 2023

This property returns true or false of player climbing state.

Note: TypeScript types are wrong - this is not a boolean, but a method.

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