Player::action: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "This property returns player action. '''Note: this property is read-only.''' List of actions: * climbing * in_cover * aiming_from_cover * diving * entering_vehicle * exiting_v...")
 
m (category)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
This property returns player action.
This property returns player action.
'''Note: this property is read-only.'''
'''Note: this property is read-only.'''
List of actions:
== List of actions: ==
* climbing
* climbing
* in_cover
* in_cover
Line 11: Line 12:
* moving
* moving
* moving_aiming
* moving_aiming
* moving_reloaing
* moving_reloading
* parachuting
* parachuting
* ragdoll
* ragdoll
Line 17: Line 18:
* reloading
* reloading
* stopped
* stopped
== Example ==
<syntaxhighlight lang="javascript">
if (player.action == 'in_cover') {
  player.outputChatBox('You are in the cover!');
}
</syntaxhighlight>
==See Also==
{{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