Player::action: Difference between revisions

From RAGE Multiplayer Wiki
m (category)
mNo edit summary
Line 29: Line 29:


[[Category:Player]]
[[Category:Player]]
[[Category:Server-side Function]]
[[Category:Server-side Property]]

Revision as of 12:52, 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