Player::action: Difference between revisions
No edit summary |
|||
| Line 18: | Line 18: | ||
* reloading | * reloading | ||
* stopped | * stopped | ||
== Example == | |||
<syntaxhighlight lang="javascript"> | |||
if (player.action == 'in_cover') { | |||
player.outputChatBox('You are in the cover!'); | |||
} | |||
</syntaxhighlight> | |||
Revision as of 19:11, 4 January 2017
This property returns player action.
Note: this property is read-only.
List of actions:
- climbing
- in_cover
- aiming_from_cover
- diving
- entering_vehicle
- exiting_vehicle
- jumping
- moving
- moving_aiming
- moving_reloaing
- parachuting
- ragdoll
- aiming
- reloading
- stopped
Example
if (player.action == 'in_cover') {
player.outputChatBox('You are in the cover!');
}