skill: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]2(\|.*)?\]\]" to "{{GameCategory|arma2|Scripting Commands}}")
m (Text replacement - "[[Arma 3 " to "[[Arma 3: ")
 
(31 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| ofpr |Game name=
|game1= ofp
|version1= 1.75


|1.75|Game version=
|game2= ofpe
|version2= 1.00


|gr1= Object Manipulation |GROUP1=
|game3= arma1
____________________________________________________________________________________________
|version3= 1.00


| Returns current level of ability of a unit, in range between 0 and 1, 1 being the highest level of skill. |DESCRIPTION=
|game4= arma2
____________________________________________________________________________________________
|version4= 1.00


| '''skill''' unitName  |SYNTAX=
|game5= arma2oa
|version5= 1.50


|p1= unitName: [[Object]] |PARAMETER1=
|game6= tkoh
|version6= 1.00


| [[Number]] |RETURNVALUE=
|game7= arma3
|version7= 0.50


|s2= unitName [[skill]] skillName (since {{GVI|arma1|1.00}} or {{GVI|arma2|1.00}})|SYNTAX2=
|gr1= AI Behaviour


|p21= unitName: [[Object]] |PARAMETER21=
|descr= Returns current skill of a unit, in range between 0 to 1, 1 being the highest level of skill.


|p22= skillName: [[String]] - Possible values are:
{{Feature|informative|
* aimingAccuracy
* Skill of AI units set via the slider in unit placement screen varies from 0.2 to 1.0.
* aimingShake
* If the '''superAI''' difficulty settings is enabled, all units have skill of 1.0 regardless of the skill slider.
* aimingSpeed
}}
* endurance
 
* spotDistance
|s1= [[skill]] unit
* spotTime
 
* courage
|p1= unit: [[Object]]
* reloadSpeed
* commanding
* general|PARAMETER2=


|r2= [[Number]] |RETURNVALUE2=____________________________________________________________________________________________
|r1= [[Number]]
 
|x1= <code>_skill = [[skill]] unit1;</code> |EXAMPLE1=


|x2= <code>_myCourage = [[player]] [[skill]] "courage"</code> |EXAMPLE2=
|s2= unit [[skill]] skillName
____________________________________________________________________________________________


| [[skillFinal]], [[setSkill]], [[setUnitAbility]], [[Arma 3 AI Skill]], [[ArmA: AI Combat Modes|AI Combat Modes]] |SEEALSO=
|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"
}}
}}


<h3 style="display:none">Notes</h3>
|r2= [[Number]]
<dl class="command_description">
<!-- Note Section BEGIN -->


<dt class="note">Unknown
|x1= <sqf>_skill = skill unit1;</sqf>
<dd class="note">Skill of AI units set via the slider in unit placement screen varies from 0.2 to 1.0. <br>
 
If superAI is enabled all units have skill of 1.0 regardless of the skill slider
|x2= <sqf>_myCourage = player skill "courage";</sqf>
 
|seealso= [[skillFinal]] [[setSkill]] [[setUnitAbility]] [[Arma 3: AI Skill]] [[Combat Modes]]
}}


<!-- Note Section END -->
</dl>


<h3 style="display:none">Bottom Section</h3>
[[Category:AI]]
[[Category:AI]]
[[Category:Scripting Commands|SKILL]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|SKILL]]
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]

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