skillFinal: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma3 |Game name=
| arma3


|1.08|Game version=
|1.08


|gr1= Object Manipulation |GROUP1=
|gr1= Object Manipulation


| 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)).


| unit [[skillFinal]] skillName |Syntax=
| unit [[skillFinal]] skillName


|p1= unit: [[Object]] |Parameter 1=
|p1= unit: [[Object]]
|p2= skillName: [[String]] - See [[AI Sub-skills|sub-skill]]. Possible values are:
|p2= skillName: [[String]] - See [[AI Sub-skills|sub-skill]]. Possible values are:
* aimingAccuracy
* aimingAccuracy
Line 22: Line 22:
* reloadSpeed
* reloadSpeed
* commanding
* commanding
* general |Parameter 2=
* general


| [[Number]] |Return value=
| [[Number]]
   
   
|x1= <code>_unitTrueCourage = unit1 [[skillFinal]] "courage";</code> |Example 1=
|x1= <code>_unitTrueCourage = unit1 [[skillFinal]] "courage";</code>


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



Revision as of 12:25, 18 January 2021

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

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:
_unitTrueCourage = unit1 skillFinal "courage";

Additional Information

See also:
skillsetSkillsetUnitAbilityCfgAISkillAI 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

Posted on January 31, 2015 - 8:45
ondrejkuzel
Since 1.40 the command works also in MP environment
Posted on August 11, 2018 - 17:12 GMT+02:00
Lou Montana
"endurance" is not exactly a valid value since Arma 3 (see sub-skill).
The value can still be queried but is not pertinent.