Arma 3 Scripting

Command in AI Behaviour

setSkill

Also available as Markdown and JSON, or read the original wiki page.

Description

Sets the skill level of given unit. The value of a sub-skill is interpolated into a range defined in CfgAISkill.

Syntax

Syntax 1

unit setSkill skill

Parameters:

Returns: Nothing

Syntax 2

since arma1 1.00

unit setSkill [skillName, value]

Parameters:

Returns: Nothing

Examples

Example 1

_hero setSkill 1;

Example 2

_finalBoss setSkill ["reloadSpeed", 0.8];
_finalBoss setSkill ["aimingSpeed", 0.33];

See also

skill · setUnitAbility · Arma 3: AI Skill · Combat Modes · skillFinal

Community notes

Hardrock

Approximate ranges are:

  • Novice < 0.25
  • Rookie >= 0.25 and <= 0.45
  • Recruit > 0.45 and <= 0.65
  • Veteran > 0.65 and <= 0.85
  • Expert > 0.85
Kronzky

If "SuperAI" is turned on in the Difficulty Menu, the skill level is always 1, no matter what was defined in the editor or via this command.