skill: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:Scripting Commands OFP 1.[4-9]{2}(\|(\{\{uc:\{\{PAGENAME\}\}\}\}|#|[A-Z]+))?\]\] " to "")
m (formatting)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| ofpr
|game1= ofp


|1.75
|version1= 1.75
 
|game2= ofpe
 
|version2= 1.00
 
|game3= arma1
 
|version3= 1.00
 
|game4= arma2
 
|version4= 1.00
 
|game5= arma2oa
 
|version5= 1.51
 
|game6= tkoh
 
|version6= 1.00
 
|game7= arma3
 
|version7= 0.50


|gr1= Object Manipulation
|gr1= Object Manipulation


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


| '''skill''' unitName
|s1= '''skill''' unit


|p1= unitName: [[Object]]
|p1= unit: [[Object]]


| [[Number]]
|r1= [[Number]]


|s2= unitName [[skill]] skillName (since {{GVI|arma1|1.00}} or {{GVI|arma2|1.00}})
|s2= unitName [[skill]] skillName {{Since|arma1|1.00|y}}


|p21= unitName: [[Object]]
|p21= unit: [[Object]]


|p22= skillName: [[String]] - Possible values are:
|p22= skillName: [[String]] - Possible values are:
* aimingAccuracy
* "aimingAccuracy"
* aimingShake
* "aimingShake"
* aimingSpeed
* "aimingSpeed"
* endurance
* "endurance"
* spotDistance
* "spotDistance"
* spotTime
* "spotTime"
* courage
* "courage"
* reloadSpeed
* "reloadSpeed"
* commanding
* "commanding"
* general
* "general"


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


Line 40: Line 65:


<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<dt class="note">Unknown</dt>
<dt class="note">Unknown</dt>
<dd class="note">Skill of AI units set via the slider in unit placement screen varies from 0.2 to 1.0. <br>
<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
If superAI is enabled all units have skill of 1.0 regardless of the skill slider
<!-- Note Section END -->
</dl>
</dl>


[[Category:AI]]
[[Category:AI]]
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Revision as of 14:16, 27 March 2021

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.
Groups:
Object Manipulation

Syntax

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

Alternative Syntax

Syntax:
unitName skill skillName Template:Since
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:
skillFinalsetSkillsetUnitAbilityArma 3 AI SkillAI 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
Unknown
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