skillFinal: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<dt class="note">([^<>]+) " to "<dt class="note">$1</dt> ")
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *S([a-z ])" to "$1 - s$2")
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma3
|game1= arma3
|version1= 1.08


|1.08
|gr1= AI Behaviour


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


| Returns final, recalculated sub skill value of given unit. (with regard to AI Level coefficient (Difficulty settings)).
|mp= Since {{GVI|arma3|1.40}} the command works in multiplayer.


| unit [[skillFinal]] skillName
|s1= unit [[skillFinal]] skillName


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


| [[Number]]
|p2= skillName: [[String]] - see [[AI Sub-skills|sub-skill]]. Possible values are:
 
* "aimingAccuracy"
|x1= <code>_unitTrueCourage = unit1 [[skillFinal]] "courage";</code>
* "aimingShake"
* "aimingSpeed"
* "endurance" (Has no effect in {{arma3}})
* "spotDistance"
* "spotTime"
* "courage"
* "reloadSpeed"
* "commanding"
* "general"


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


<dl class="command_description">
|x1= <sqf>_unitTrueCourage = unit1 skillFinal "courage";</sqf>
<!-- Note Section BEGIN -->
<dd class="notedate">Posted on January 31, 2015 - 8:45</dd>
<dt class="note">[[User:ondrejkuzel|ondrejkuzel]]</dt>
<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</dd>
|seealso= [[skill]] [[setSkill]] [[setUnitAbility]] [[CfgAISkill]] [[Combat Modes]]
<dt class="note">[[User:Lou Montana|Lou Montana]]</dt>
}}
<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 -->
</dl>


[[Category:AI]]
[[Category:AI]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|arma3|New Scripting Commands}}

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