skillFinal: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (note about MP)
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *S([a-z ])" to "$1 - s$2")
 
(29 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 1.08


|1.08|= Game version
|gr1= AI Behaviour
____________________________________________________________________________________________


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


| unitName '''skillFinal''' [[AI Sub-skills|sub-skill]] |= Syntax
|mp= Since {{GVI|arma3|1.40}} the command works in multiplayer.


|s1= unit [[skillFinal]] skillName


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


| [[Number]] |= Return value
|p2= skillName: [[String]] - see [[AI Sub-skills|sub-skill]]. Possible values are:
____________________________________________________________________________________________
* "aimingAccuracy"
 
* "aimingShake"
|x1= <pre> cursorTarget skillFinal "Endurance" </pre> |= Example 1
* "aimingSpeed"
____________________________________________________________________________________________
* "endurance" (Has no effect in {{arma3}})
* "spotDistance"
* "spotTime"
* "courage"
* "reloadSpeed"
* "commanding"
* "general"


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


|x1= <sqf>_unitTrueCourage = unit1 skillFinal "courage";</sqf>
|seealso= [[skill]] [[setSkill]] [[setUnitAbility]] [[CfgAISkill]] [[Combat Modes]]
}}
}}


<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<dt class="note">'''[[User:ondrejkuzel|ondrejkuzel]]'''<dd class="note"> Since 1.40 the command works also in MP environment
<dd class="notedate">Posted on January 31, 2015 - 8:45
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:AI]]
[[Category:AI]]
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

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