skill: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
m (Text replacement - "[[Arma 3 " to "[[Arma 3: ")
 
(4 intermediate revisions by 2 users not shown)
Line 25: Line 25:


|descr= Returns current skill of a unit, in range between 0 to 1, 1 being the highest level of skill.
|descr= Returns current skill of a unit, in range between 0 to 1, 1 being the highest level of skill.
{{Feature|informative|
* Skill of AI units set via the slider in unit placement screen varies from 0.2 to 1.0.
* If the '''superAI''' difficulty settings is enabled, all units have skill of 1.0 regardless of the skill slider.
}}


|s1= [[skill]] unit
|s1= [[skill]] unit
Line 32: Line 37:
|r1= [[Number]]
|r1= [[Number]]


|s2= unitName [[skill]] skillName
|s2= unit [[skill]] skillName


|s2since= arma1 1.00
|s2since= arma1 1.00
Line 38: Line 43:
|p21= unit: [[Object]]
|p21= unit: [[Object]]


|p22= skillName: [[String]] - Possible values are:
|p22= skillName: [[String]] - possible values are:
{{Columns|5|
* "aimingAccuracy"
* "aimingAccuracy"
* "aimingShake"
* "aimingShake"
Line 49: Line 55:
* "commanding"
* "commanding"
* "general"
* "general"
}}


|r2= [[Number]]
|r2= [[Number]]
 
 
|x1= <sqf>_skill = skill unit1;</sqf>
|x1= <sqf>_skill = skill unit1;</sqf>


|x2= <sqf>_myCourage = player skill "courage"</sqf>
|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]]
}}
}}


<dl class="command_description">
<dt class="note">Unknown</dt>
<dd class="note">Skill of AI units set via the slider in unit placement screen varies from 0.2 to 1.0. <br>
If superAI is enabled all units have skill of 1.0 regardless of the skill slider
</dl>


[[Category:AI]]
[[Category:AI]]

Latest revision as of 10:38, 6 May 2024

Hover & click on the images for description

Description

Description:
Returns current skill of a unit, in range between 0 to 1, 1 being the highest level of skill.
  • Skill of AI units set via the slider in unit placement screen varies from 0.2 to 1.0.
  • If the superAI difficulty settings is enabled, all units have skill of 1.0 regardless of the skill slider.
Groups:
AI Behaviour

Syntax

Syntax:
skill unit
Parameters:
unit: Object
Return Value:
Number

Alternative Syntax

Syntax:
unit 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:
_skill = skill unit1;
Example 2:
_myCourage = player skill "courage";

Additional Information

See also:
skillFinal setSkill setUnitAbility Arma 3: AI Skill 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