Player::isLeavingVehicle: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "This property returns true or false of player vehicle leave state. '''Note: this property is read-only.''' == Example == <source lang="javascript"> let playerIsLeavingVehicle...")
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 4: Line 4:
== Example ==
== Example ==
<source lang="javascript">
<source lang="javascript">
let playerIsLeavingVehicle = player.isEnteringVehicle
let playerIsLeavingVehicle = player.isLeavingVehicle
if (playerIsLeavingVehicle)
if (playerIsLeavingVehicle)
   player.outputChatBox('You are leaving the vehicle right now!');
   player.outputChatBox('You are leaving the vehicle right now!');
Line 10: Line 10:
   player.outputChatBox('You are not leaving the vehicle right now!');
   player.outputChatBox('You are not leaving the vehicle right now!');
</source>
</source>
==See Also==
{{Player_block}}

Latest revision as of 13:47, 17 April 2017

This property returns true or false of player vehicle leave state.

Note: this property is read-only.

Example

let playerIsLeavingVehicle = player.isLeavingVehicle
if (playerIsLeavingVehicle)
  player.outputChatBox('You are leaving the vehicle right now!');
else
  player.outputChatBox('You are not leaving the vehicle right now!');

See Also