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

Player::setCombatAbility

Материал из RAGE MP Wiki Archive
Версия от 23:45, 6 мая 2017; imported>Marty uploader (yay)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

100 would equal attack
less then 50ish would mean run away

Only the values 0, 1 and 2 occur in the decompiled scripts. Most likely refers directly to the values also described in combatbehaviour.meta:
0: CA_Poor
1: CA_Average
2: CA_Professional

Tested this and got the same results as the first explanation here. Could not find any difference between 0, 1 and 2.

Syntax

<syntaxhighlight lang="javascript">player.setCombatAbility(p1);</syntaxhighlight>

Required Arguments

  • p1: int

Return value

  • Undefined

Example

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also