Player::setUsingActionMode

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

p2 is usually -1 in the scripts. action is either 0 or 'DEFAULT_ACTION'.

Syntax

player.setUsingActionMode(p1, p2, action);

Required Arguments

  • p1: Boolean
  • p2: unknown (to be checked)
  • action: String

Return value

  • Undefined

Example

This will clear melee stance almost instantly when attacking.

if (player.isUsingActionMode()) {
   player.setUsingActionMode(-1, -1, 1)
}

See also