Arma 3 Scripting

setUnitAbility

  • Arma 3 v0.50
  • First in Operation Flashpoint: Elite v1.00

Command · Markdown · JSON · 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

Community notes

Dwarden

AFAIK not used in Arma 3 anymore (or equals to setSkill)