setUnitAbility: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma1 | | arma1 | ||
|1.00 | |1.00 | ||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
| 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. | | 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. | ||
| unit [[setUnitAbility]] value | | unit [[setUnitAbility]] value | ||
|p1= unit: [[Object]] | |p1= unit: [[Object]] | ||
|p2= value: [[Number]] | |p2= value: [[Number]] | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code>_unit [[setUnitAbility]] 1;</code> | |x1= <code>_unit [[setUnitAbility]] 1;</code> | ||
|x2= <code>bob [[setUnitAbility]] -[[log]] 0; | |x2= <code>bob [[setUnitAbility]] -[[log]] 0; | ||
[[hint]] [[str]] [[skill]] bob; //1.#INF</code> | [[hint]] [[str]] [[skill]] bob; //1.#INF</code> | ||
| [[skill]], [[setSkill]], [[CfgAISkill]], [[ArmA: AI Combat Modes|AI Combat Modes]] | | [[skill]], [[setSkill]], [[CfgAISkill]], [[ArmA: AI Combat Modes|AI Combat Modes]] | ||
}} | }} |
Revision as of 11:12, 18 January 2021
Description
- 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.
- Groups:
- Object Manipulation
Syntax
- Syntax:
- unit setUnitAbility value
- Parameters:
- unit: Object
- value: Number
- Return Value:
- Nothing
Examples
- Example 1:
_unit setUnitAbility 1;
- Example 2:
bob setUnitAbility -log 0; hint str skill bob; //1.#INF
Additional Information
- See also:
- skillsetSkillCfgAISkillAI Combat Modes
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
- Posted on October 8, 2014 - 09:20 (UTC)
- Dwarden
- AFAIK not used in Arma 3 anymore (or equals to setSkill)
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Command Group: Object Manipulation
- AI
- Operation Flashpoint: Elite: Scripting Commands
- Arma 2: Scripting Commands
- Arma 3: Scripting Commands
- Take On Helicopters: Scripting Commands