Player::action: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
m (category)
Line 12: Line 12:
* moving
* moving
* moving_aiming
* moving_aiming
* moving_reloaing
* moving_reloading
* parachuting
* parachuting
* ragdoll
* ragdoll
Line 27: Line 27:
==See Also==
==See Also==
{{Player_block}}
{{Player_block}}
[[Category:Player]]
[[Category:Server-side Function]]

Revision as of 12:51, 30 April 2019

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