skillFinal: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\{\{GameCategory\|(arma[0123])\|[ _]?New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
| arma3 |Game name=
Line 7: Line 6:


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


| 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=
____________________________________________________________________________________________


| unit [[skillFinal]] skillName |Syntax=
| unit [[skillFinal]] skillName |Syntax=
Line 28: Line 25:


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


| [[skill]], [[setSkill]], [[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 03:58, 17 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.

Bottom Section