Player::isLeavingVehicle: Difference between revisions
(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 |
||
| Line 4: | Line 4: | ||
== Example == | == Example == | ||
<source lang="javascript"> | <source lang="javascript"> | ||
let playerIsLeavingVehicle = player. | 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!'); | ||
Revision as of 19:33, 4 January 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!');