skill: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "[[Arma 3 " to "[[Arma 3: ")
 
(77 intermediate revisions by 15 users not shown)
Line 1: Line 1:
back to [[Scripting_Reference#U|COMREF]]
{{RV|type=command


<h2 style="color:#000066">'''skill '''''person''</h2>
|game1= ofp
|version1= 1.75


'''Operand types:'''
|game2= ofpe
|version2= 1.00


person: [[Object]]
|game3= arma1
|version3= 1.00


'''Type of returned value:'''
|game4= arma2
|version4= 1.00


[[Number]]
|game5= arma2oa
|version5= 1.50


'''Description:'''
|game6= tkoh
|version6= 1.00


Returns current level of ability of person, in range between 0 and 1.
|game7= arma3
|version7= 0.50


Skill 1 is highest skill.
|gr1= AI Behaviour


'''Example:'''
|descr= Returns current skill of a unit, in range between 0 to 1, 1 being the highest level of skill.


_sk = '''skill''' loon1
{{Feature|informative|
* Skill of AI units set via the slider in unit placement screen varies from 0.2 to 1.0.
* If the '''superAI''' difficulty settings is enabled, all units have skill of 1.0 regardless of the skill slider.
}}


'''Comments'''
|s1= [[skill]] unit


Skill of AI units set via the slider in unit placement screen varies from 0.2 to 1.0.
|p1= unit: [[Object]]
If superAI is enabled all units have skill of 1.0 regardless of the skill slider.
 
|r1= [[Number]]
 
|s2= unit [[skill]] skillName
 
|s2since= arma1 1.00
 
|p21= unit: [[Object]]
 
|p22= skillName: [[String]] - possible values are:
{{Columns|5|
* "aimingAccuracy"
* "aimingShake"
* "aimingSpeed"
* "endurance"
* "spotDistance"
* "spotTime"
* "courage"
* "reloadSpeed"
* "commanding"
* "general"
}}
 
|r2= [[Number]]
 
|x1= <sqf>_skill = skill unit1;</sqf>
 
|x2= <sqf>_myCourage = player skill "courage";</sqf>
 
|seealso= [[skillFinal]] [[setSkill]] [[setUnitAbility]] [[Arma 3: AI Skill]] [[Combat Modes]]
}}
 
 
[[Category:AI]]

Latest revision as of 10:38, 6 May 2024

Hover & click on the images for description

Description

Description:
Returns current skill of a unit, in range between 0 to 1, 1 being the highest level of skill.
  • Skill of AI units set via the slider in unit placement screen varies from 0.2 to 1.0.
  • If the superAI difficulty settings is enabled, all units have skill of 1.0 regardless of the skill slider.
Groups:
AI Behaviour

Syntax

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

Alternative Syntax

Syntax:
unit skill skillName
Parameters:
unit: Object
skillName: 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:
_myCourage = player skill "courage";

Additional Information

See also:
skillFinal setSkill setUnitAbility Arma 3: AI Skill 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