skill: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (template:command argument fix)
(5 intermediate revisions by 4 users not shown)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


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


| '''skill''' unitName  |= Syntax
| '''skill''' unitName  |SYNTAX=


|p1= unitName: [[Object]] |= Parameter 1
|p1= unitName: [[Object]] |PARAMETER1=


| [[Number]] |= Return value
| [[Number]] |RETURNVALUE=


|s2= unitName '''skill''' skillType (''Arma2 only'')|= Syntax
|s2= unitName [[skill]] skillName (since {{GVI|arma|1.00}} or {{GVI|arma2|1.00}})|SYNTAX=


|p21= unitName: [[Object]] |= Parameter 1
|p21= unitName: [[Object]] |PARAMETER1=
|p22= skillType: [[String]] - Possible values are:<br>
"aimingAccuracy"<br>
"aimingShake"<br>
"aimingSpeed"<br>
"endurance"<br>
"spotDistance"<br>
"spotTime"<br>
"courage"<br>
"reloadSpeed"<br>
"commanding"<br>
"general"<br>|= Parameter 2


|r2= [[Number]] |= Return value
|p22= skillName: [[String]] - Possible values are:
* aimingAccuracy
* aimingShake
* aimingSpeed
* endurance
* spotDistance
* spotTime
* courage
* reloadSpeed
* commanding
* general|PARAMETER2=
 
|r2= [[Number]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>_skill = skill unit1 </pre> |= Example 1
|x1= <code>_skill = [[skill]] unit1;</code> |EXAMPLE1=
|x2= <pre>_myEndurance <nowiki>=</nowiki> player skill "Endurance"</pre> |= Example 2
 
|x2= <code>_myCourage = [[player]] [[skill]] "courage"</code> |EXAMPLE2=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[skillFinal]], [[setSkill]], [[setSkill array]], [[setUnitAbility]], [[CfgAISkill]], [[ArmA: AI Combat Modes|AI Combat Modes]] |= See also
| [[skillFinal]], [[setSkill]], [[setUnitAbility]], [[Arma 3 AI Skill]], [[ArmA: AI Combat Modes|AI Combat Modes]] |SEEALSO=


}}
}}
Line 45: Line 47:
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
Skill of AI units set via the slider in unit placement screen varies from 0.2 to 1.0.


<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
If superAI is enabled all units have skill of 1.0 regardless of the skill slider
<!-- Note Section END -->
<!-- Note Section END -->
</dl>
</dl>

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