skillFinal: Difference between revisions

From Bohemia Interactive Community
m (relocated link to proper position)
m (Change setSkill_array reference to setSkill)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns final, recalculated sub skill value of given unit. (with regard to AI Level coefficient (Difficulty settings)).   |= Description
| Returns final, recalculated sub skill value of given unit. (with regard to AI Level coefficient (Difficulty settings)). |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| unitName '''skillFinal''' sub-skill |= Syntax
| unit [[skillFinal]] skillName |= Syntax




|p1= unitName: [[Object]] |= Parameter 1
|p1= unit: [[Object]] |= Parameter 1
|p2= sub-skill: [[String]] - See [[AI Sub-skills|sub-skill]]. Possible values are:<br>
|p2= skillName: [[String]] - See [[AI Sub-skills|sub-skill]]. Possible values are:
"aimingAccuracy"<br>
* aimingAccuracy
"aimingShake"<br>
* aimingShake
"aimingSpeed"<br>
* aimingSpeed
"endurance"<br>
* endurance
"spotDistance"<br>
* spotDistance
"spotTime"<br>
* spotTime
"courage"<br>
* courage
"reloadSpeed"<br>
* reloadSpeed
"commanding"<br>
* commanding
"general"<br> |= Parameter 2
* general |= Parameter 2


| [[Number]] |= Return value
| [[Number]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre> cursorTarget skillFinal "Endurance" </pre> |= Example 1
|x1= <code>_unitTrueEndurance = unit1 [[skillFinal]] "endurance";</code> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________


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


}}
}}

Revision as of 18:06, 25 March 2018

Hover & click on the images for description

Description

Description:
Returns final, recalculated sub skill value of given unit. (with regard to AI Level coefficient (Difficulty settings)).
Groups:
Uncategorised

Syntax

Syntax:
unit skillFinal skillName
Parameters:
unit: Object
skillName: String - See sub-skill. Possible values are:
  • aimingAccuracy
  • aimingShake
  • aimingSpeed
  • endurance
  • spotDistance
  • spotTime
  • courage
  • reloadSpeed
  • commanding
  • general
Return Value:
Number

Examples

Example 1:
_unitTrueEndurance = unit1 skillFinal "endurance";

Additional Information

See also:
skillsetSkillsetUnitAbilityCfgAISkillAI Combat Modes

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note

Notes

ondrejkuzel
Since 1.40 the command works also in MP environment
Posted on January 31, 2015 - 8:45

Bottom Section