{"name":"setUnitAbility","title":"setUnitAbility","type":"command","url":"https://community.bistudio.com/wiki/setUnitAbility","revid":379387,"updated":"2026-10-30T23:59:44Z","groups":["AI Behaviour"],"status":"ok","games":{"ofpe":"1.00","arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"ofpe 1.00","arma3_since":"0.50","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.","syntaxes":[{"syntax":"unit setUnitAbility value","params":[{"name":"unit","type":"Object","type_expr":"Object"},{"name":"value","type":"Number","type_expr":"Number"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"unit"},"right":{"text":"value"}}],"examples":[{"code":["_unit setUnitAbility 1;"]},{"code":["bob setUnitAbility -log 0;\nhint str skill bob; //1.#INF"]}],"see_also":["skill","setSkill","CfgAISkill","Combat Modes"],"notes":[{"user":"Dwarden","date":"2014-10-08T09:20:00Z","text":"AFAIK not used in Arma 3 anymore (or equals to setSkill)"}],"categories_extra":["AI"]}