Player::setUsingActionMode

From RAGE Multiplayer Wiki
Revision as of 21:48, 7 February 2019 by Koil (talk | contribs) (→‎Example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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