skill: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|s([0-9])\= '''([^' ]+)'''([^ ]+) " to "|s$1= $2$3 ")
m (Text replacement - "\| *s([0-9]) *=([^ ]+) *\{\{Since\|(.+)\|([0-9]\.[0-9][02468])[^ ]+\}\} " to "|s$1= $2 |s$1since= $3 $4 ")
Line 32: Line 32:
|r1= [[Number]]
|r1= [[Number]]


|s2= unitName [[skill]] skillName {{Since|arma1|1.00|y}}
|s2= unitName [[skill]] skillName
 
|s2since= arma1 1.00


|p21= unit: [[Object]]
|p21= unit: [[Object]]

Revision as of 22:37, 10 August 2021

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.
Groups:
Object Manipulation

Syntax

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

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

Additional Information

See also:
skillFinalsetSkillsetUnitAbilityArma 3 AI SkillCombat 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
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