skill: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 54: Line 54:
[[Category:AI]]
[[Category:AI]]
[[Category:Scripting Commands|SKILL]]
[[Category:Scripting Commands|SKILL]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|SKILL]]
[[Category:Scripting Commands OFP 1.96|SKILL]]
[[Category:Scripting Commands ArmA|SKILL]]
[[Category:Scripting Commands ArmA|SKILL]]

Revision as of 12:21, 25 September 2014

Hover & click on the images for description

Description

Description:
Returns current level of ability of person, in range between 0 and 1. Skill 1 is highest skill.
Groups:
Uncategorised

Syntax

Syntax:
skill unitName
Parameters:
unitName: Object
Return Value:
Number

Alternative Syntax

Syntax:
unitName skill skillType (Arma2 only)
Parameters:
unitName: Object
skillType: String - Possible values are:
"aimingAccuracy"
"aimingShake"
"aimingSpeed"
"endurance"
"spotDistance"
"spotTime"
"courage"
"reloadSpeed"
"commanding"
"general"
Return Value:
Number

Examples

Example 1:
_skill = skill unit1 
Example 2:
_myEndurance = player skill "Endurance"

Additional Information

See also:
skillFinalsetSkillsetSkill arraysetUnitAbilityCfgAISkillAI 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

Skill of AI units set via the slider in unit placement screen varies from 0.2 to 1.0. If superAI is enabled all units have skill of 1.0 regardless of the skill slider

Bottom Section