skill

From Bohemia Interactive Community
Revision as of 11:38, 6 May 2024 by Lou Montana (talk | contribs) (Text replacement - "[[Arma 3 " to "[[Arma 3: ")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
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