skill: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (template:command argument fix)
(23 intermediate revisions by 13 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|S]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.97|S]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|S]]


| ofpr |= Game name


<h2 style="color:#000066">'''skill ''person'''''</h2>
|1.75|= Game version
____________________________________________________________________________________________


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


'''Operand types:'''
| '''skill''' unitName  |SYNTAX=


'''person:''' [[Object]]
|p1= unitName: [[Object]] |PARAMETER1=


'''Type of returned value:'''
| [[Number]] |RETURNVALUE=


[[Number]]
|s2= unitName [[skill]] skillName (since {{GVI|arma|1.00}} or {{GVI|arma2|1.00}})|SYNTAX=


'''Compatibility:'''
|p21= unitName: [[Object]] |PARAMETER1=


Added in version '''1.75'''
|p22= skillName: [[String]] - Possible values are:
* aimingAccuracy
* aimingShake
* aimingSpeed
* endurance
* spotDistance
* spotTime
* courage
* reloadSpeed
* commanding
* general|PARAMETER2=


'''Description:'''
|r2= [[Number]] |RETURNVALUE=
____________________________________________________________________________________________
 
|x1= <code>_skill = [[skill]] unit1;</code> |EXAMPLE1=


Returns current level of ability of '''person''', in range between 0 and 1.
|x2= <code>_myCourage = [[player]] [[skill]] "courage"</code> |EXAMPLE2=
____________________________________________________________________________________________


Skill 1 is highest skill.
| [[skillFinal]], [[setSkill]], [[setUnitAbility]], [[Arma 3 AI Skill]], [[ArmA: AI Combat Modes|AI Combat Modes]] |SEEALSO=


}}


'''Example:'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


_sk = '''skill''' loon1
<dt class="note">Unknown
<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


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


'''Comments'''
<h3 style="display:none">Bottom Section</h3>
 
[[Category:AI]]
Skill of AI units set via the slider in unit placement screen varies from 0.2 to 1.0.
[[Category:Scripting Commands|SKILL]]
 
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
If superAI is enabled all units have skill of 1.0 regardless of the skill slider.
[[Category:Scripting Commands OFP 1.96|SKILL]]
[[Category:Scripting Commands ArmA|SKILL]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 15:49, 7 April 2019

Hover & click on the images for description

Description

Description:
Returns current level of ability of a unit, in range between 0 and 1, 1 being the highest level of skill.
Groups:
Uncategorised

Syntax

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

Alternative Syntax

Syntax:
unitName skill skillName (since -wrong parameter ("Arma") defined!-1.00 or Logo A2.png1.00)
Parameters:
unitName: 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

Notes

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

Bottom Section