Player::isClimbing: Difference between revisions

From RAGE Multiplayer Wiki
(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
 
(3 intermediate revisions by 3 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 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>
==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