Player::action

From RAGE Multiplayer Wiki
Revision as of 16:55, 17 May 2019 by RoboN1X (talk | contribs) (category)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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_reloading
  • parachuting
  • ragdoll
  • aiming
  • reloading
  • stopped

Example

if (player.action == 'in_cover') {
  player.outputChatBox('You are in the cover!');
}

See Also