Skip to main content

Player::setUsingActionMode

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

Syntax

```js player.setUsingActionMode(state, timeout, action); ```

Required Arguments

  • state: Boolean
  • timeout: Number
  • action: String

Return value

  • Undefined

Example

This will clear melee stance almost instantly when attacking.

```js if (player.isUsingActionMode()) {

  player.setUsingActionMode(-1, -1, 1)

}

```

See also