skillFinal: Difference between revisions
Jump to navigation
Jump to search
m (relocated link to proper position) |
Lou Montana (talk | contribs) m (Change setSkill_array reference to setSkill) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| 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)). |= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | unit [[skillFinal]] skillName |= Syntax | ||
|p1= | |p1= unit: [[Object]] |= Parameter 1 | ||
|p2= | |p2= skillName: [[String]] - See [[AI Sub-skills|sub-skill]]. Possible values are: | ||
* aimingAccuracy | |||
* aimingShake | |||
* aimingSpeed | |||
* endurance | |||
* spotDistance | |||
* spotTime | |||
* courage | |||
* reloadSpeed | |||
* commanding | |||
* general |= Parameter 2 | |||
| [[Number]] |= Return value | | [[Number]] |= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= < | |x1= <code>_unitTrueEndurance = unit1 [[skillFinal]] "endurance";</code> |= Example 1 | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[skill]], [[setSkill | | [[skill]], [[setSkill]], [[setUnitAbility]], [[CfgAISkill]], [[ArmA: AI Combat Modes|AI Combat Modes]] |= See also | ||
}} | }} |
Revision as of 18:06, 25 March 2018
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:
_unitTrueEndurance = unit1 skillFinal "endurance";
Additional Information
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
- ondrejkuzel
- Since 1.40 the command works also in MP environment
- Posted on January 31, 2015 - 8:45