Arma 3 Scripting

Command in AI Behaviour

setUnitAbility

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

Description

Sets skill of given unit. Unlike setSkill, setUnitAbility can set values > 1. Even though the skill command will correctly return set value, the actual unit ability will be capped to max available.

Syntax

unit setUnitAbility value

Parameters:

Returns: Nothing

Examples

Example 1

_unit setUnitAbility 1;

Example 2

bob setUnitAbility -log 0;
hint str skill bob; //1.#INF

See also

skill · setSkill · CfgAISkill · Combat Modes