skillFinal: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (fixed variable name in example)
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{Command|Comments=
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma3 |= Game name
| arma3 |Game name=


|1.08|= Game version
|1.08|Game version=
____________________________________________________________________________________________
____________________________________________________________________________________________


| 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''' [[AI Sub-skills|sub-skill]] |= Syntax
| unit [[skillFinal]] skillName |Syntax=


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


|p1= unitName: [[Object]] |= Parameter 1
| [[Number]] |Return value=
|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
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre> cursorTarget skillFinal "Endurance" </pre> |= Example 1
|x1= <code>_unitTrueCourage = unit1 [[skillFinal]] "courage";</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=
 
}}
}}


Line 40: Line 37:
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
<dt class="note">'''[[User:ondrejkuzel|ondrejkuzel]]'''<dd class="note"> Command has a simple testing purpose. Works correctly only in SP environment or on the location where the unit has got created and remained local to.
<dd class="notedate">Posted on January 31, 2015 - 8:45
<dd class="notedate">Posted on October 30, 2014 - 10:00
<dt class="note">[[User:ondrejkuzel|ondrejkuzel]]
<dd class="note">Since 1.40 the command works also in MP environment
 
<dd class="notedate">Posted on August 11, 2018 - 17:12 GMT+02:00
<dt class="note">[[User:Lou Montana|Lou Montana]]
<dd class="note">"endurance" is not exactly a valid value since {{arma3}} (see [[AI Sub-skills|sub-skill]]).<br />
The value can still be queried but is not pertinent.
<!-- Note Section END -->
<!-- Note Section END -->
</dl>
</dl>
Line 47: Line 50:
<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:AI]]
[[Category:AI]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 18:00, 11 August 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:
_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