skillFinal: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *S([a-z ])" to "$1 - s$2")
 
(3 intermediate revisions by 2 users not shown)
Line 4: Line 4:
|version1= 1.08
|version1= 1.08


|gr1= Object Manipulation
|gr1= AI Behaviour


|descr= Returns final, recalculated sub skill value of given unit. (with regard to AI Level coefficient (Difficulty settings)).
|descr= Returns final, recalculated sub skill value of given unit. (with regard to AI Level coefficient (Difficulty settings)).
Line 14: Line 14:
|p1= unit: [[Object]]
|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"
* "aimingShake"
* "aimingShake"
Line 28: Line 28:
|r1= [[Number]]
|r1= [[Number]]


|x1= <code>_unitTrueCourage = unit1 [[skillFinal]] "courage";</code>
|x1= <sqf>_unitTrueCourage = unit1 skillFinal "courage";</sqf>


|seealso= [[skill]] [[setSkill]] [[setUnitAbility]] [[CfgAISkill]] [[Combat Modes]]
|seealso= [[skill]] [[setSkill]] [[setUnitAbility]] [[CfgAISkill]] [[Combat Modes]]

Latest revision as of 15:49, 8 November 2023

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)).
Multiplayer:
Since Arma 3 logo black.png1.40 the command works in multiplayer.
Groups:
AI Behaviour

Syntax

Syntax:
unit skillFinal skillName
Parameters:
unit: Object
skillName: String - see sub-skill. Possible values are:
  • "aimingAccuracy"
  • "aimingShake"
  • "aimingSpeed"
  • "endurance" (Has no effect in Arma 3)
  • "spotDistance"
  • "spotTime"
  • "courage"
  • "reloadSpeed"
  • "commanding"
  • "general"
Return Value:
Number

Examples

Example 1:
_unitTrueCourage = unit1 skillFinal "courage";

Additional Information

See also:
skill setSkill setUnitAbility CfgAISkill 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