skill: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (formatted notes)
m (Change setSkill_array reference to setSkill)
Line 16: Line 16:
| [[Number]] |= Return value
| [[Number]] |= Return value


|s2= unitName '''skill''' skillType (''Arma2 and newer'')|= Syntax
|s2= unitName [[skill]] skillName {{GVI|arma2|1.00}}|= Syntax


|p21= unitName: [[Object]] |= Parameter 1
|p21= unitName: [[Object]] |= Parameter 1
|p22= skillType: [[String]] - Possible values are:<br>
 
"aimingAccuracy"<br>
|p22= skillName: [[String]] - Possible values are:
"aimingShake"<br>
* aimingAccuracy
"aimingSpeed"<br>
* aimingShake
"endurance"<br>
* aimingSpeed
"spotDistance"<br>
* endurance
"spotTime"<br>
* spotDistance
"courage"<br>
* spotTime
"reloadSpeed"<br>
* courage
"commanding"<br>
* reloadSpeed
"general"<br>|= Parameter 2
* commanding
* general|= Parameter 2


|r2= [[Number]] |= Return value
|r2= [[Number]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>_skill = skill unit1 </pre> |= Example 1
|x1= <code>_skill = [[skill]] unit1;</code> |= Example 1
|x2= <pre>_myEndurance <nowiki>=</nowiki> player skill "Endurance"</pre> |= Example 2
 
|x2= <code>_myCourage = [[player]] [[skill]] "courage"</code> |= Example 2
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[skillFinal]], [[setSkill]], [[setSkill array]], [[setUnitAbility]], [[CfgAISkill]], [[ArmA: AI Combat Modes|AI Combat Modes]] |= See also
| [[skillFinal]], [[setSkill]], [[setUnitAbility]], [[CfgAISkill]], [[ArmA: AI Combat Modes|AI Combat Modes]] |= See also


}}
}}

Revision as of 17:35, 25 March 2018

Hover & click on the images for description

Description

Description:
Returns current level of ability of person, in range between 0 and 1. Skill 1 is highest skill.
Groups:
Uncategorised

Syntax

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

Alternative Syntax

Syntax:
unitName skill skillName 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:
skillFinalsetSkillsetUnitAbilityCfgAISkillAI 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