Player::action: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
m (category)
 
(2 intermediate revisions by the same user not shown)
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 API]]
[[Category:Server-side Property]]

Latest revision as of 16:55, 17 May 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