Перейти к содержанию

Player::setUsingActionMode

Материал из RAGE MP Wiki Archive
Версия от 13:14, 26 мая 2020; imported>Krotter
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

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

Syntax

<syntaxhighlight lang="javascript">player.setUsingActionMode(state, timeout, action);</syntaxhighlight>

Required Arguments

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

Return value

  • Undefined

Example

This will clear melee stance almost instantly when attacking. <syntaxhighlight lang="javascript"> if (player.isUsingActionMode()) {

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

}

</syntaxhighlight>

See also