skill: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (see also)
m (template:command argument fix)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns current level of ability of a unit, in range between 0 and 1, 1 being the highest level of skill. |= Description
| Returns current level of ability of a unit, in range between 0 and 1, 1 being the highest level of skill. |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''skill''' unitName  |= Syntax
| '''skill''' unitName  |SYNTAX=


|p1= unitName: [[Object]] |= Parameter 1
|p1= unitName: [[Object]] |PARAMETER1=


| [[Number]] |= Return value
| [[Number]] |RETURNVALUE=


|s2= unitName [[skill]] skillName (since {{GVI|arma|1.00}} or {{GVI|arma2|1.00}})|= Syntax
|s2= unitName [[skill]] skillName (since {{GVI|arma|1.00}} or {{GVI|arma2|1.00}})|SYNTAX=


|p21= unitName: [[Object]] |= Parameter 1
|p21= unitName: [[Object]] |PARAMETER1=


|p22= skillName: [[String]] - Possible values are:
|p22= skillName: [[String]] - Possible values are:
Line 30: Line 30:
* reloadSpeed
* reloadSpeed
* commanding
* commanding
* general|= Parameter 2
* general|PARAMETER2=


|r2= [[Number]] |= Return value
|r2= [[Number]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>_skill = [[skill]] unit1;</code> |= Example 1
|x1= <code>_skill = [[skill]] unit1;</code> |EXAMPLE1=


|x2= <code>_myCourage = [[player]] [[skill]] "courage"</code> |= Example 2
|x2= <code>_myCourage = [[player]] [[skill]] "courage"</code> |EXAMPLE2=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[skillFinal]], [[setSkill]], [[setUnitAbility]], [[Arma 3 AI Skill]], [[ArmA: AI Combat Modes|AI Combat Modes]] |= See also
| [[skillFinal]], [[setSkill]], [[setUnitAbility]], [[Arma 3 AI Skill]], [[ArmA: AI Combat Modes|AI Combat Modes]] |SEEALSO=


}}
}}

Revision as of 15:49, 7 April 2019

Hover & click on the images for description

Description

Description:
Returns current level of ability of a unit, in range between 0 and 1, 1 being the highest level of skill.
Groups:
Uncategorised

Syntax

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

Alternative Syntax

Syntax:
unitName skill skillName (since -wrong parameter ("Arma") defined!-1.00 or Logo A2.png1.00)
Parameters:
unitName: 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 SkillAI 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

Notes

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

Bottom Section