skill: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>") |
||
Line 52: | Line 52: | ||
|r2= [[Number]] | |r2= [[Number]] | ||
|x1= < | |x1= <sqf>_skill = skill unit1;</sqf> | ||
|x2= < | |x2= <sqf>_myCourage = player skill "courage"</sqf> | ||
|seealso= [[skillFinal]] [[setSkill]] [[setUnitAbility]] [[Arma 3 AI Skill]] [[Combat Modes]] | |seealso= [[skillFinal]] [[setSkill]] [[setUnitAbility]] [[Arma 3 AI Skill]] [[Combat Modes]] |
Revision as of 10:25, 13 May 2022
Description
- Description:
- Returns current skill of a unit, in range between 0 to 1, 1 being the highest level of skill.
- Groups:
- AI Behaviour
Syntax
Alternative Syntax
- Syntax:
- unitName skill skillName
- Parameters:
- unit: Object
- skillName: String - Possible values are:
- "aimingAccuracy"
- "aimingShake"
- "aimingSpeed"
- "endurance"
- "spotDistance"
- "spotTime"
- "courage"
- "reloadSpeed"
- "commanding"
- "general"
- Return Value:
- Number
Examples
- Example 1:
- Example 2:
Additional Information
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
- Unknown
- Skill of AI units set via the slider in unit placement screen varies from 0.2 to 1.0.
If superAI is enabled all units have skill of 1.0 regardless of the skill slider
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.75
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Operation Flashpoint: Elite: Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: AI Behaviour
- AI