skill: Difference between revisions
Jump to navigation
Jump to search
m (Added SEEALSO) |
m (template:command argument fix) |
||
(13 intermediate revisions by 9 users not shown) | |||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Returns current level of ability of | | Returns current level of ability of a unit, in range between 0 and 1, 1 being the highest level of skill. |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| '''skill''' unitName |= | | '''skill''' unitName |SYNTAX= | ||
|p1= unitName: [[Object]] |= | |p1= unitName: [[Object]] |PARAMETER1= | ||
| [[Number]] |= | | [[Number]] |RETURNVALUE= | ||
|s2= unitName | |s2= unitName [[skill]] skillName (since {{GVI|arma|1.00}} or {{GVI|arma2|1.00}})|SYNTAX= | ||
|p21= unitName: [[Object]] |= | |p21= unitName: [[Object]] |PARAMETER1= | ||
|r2= [[Number]] |= | |p22= skillName: [[String]] - Possible values are: | ||
* aimingAccuracy | |||
* aimingShake | |||
* aimingSpeed | |||
* endurance | |||
* spotDistance | |||
* spotTime | |||
* courage | |||
* reloadSpeed | |||
* commanding | |||
* general|PARAMETER2= | |||
|r2= [[Number]] |RETURNVALUE= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= < | |x1= <code>_skill = [[skill]] unit1;</code> |EXAMPLE1= | ||
|x2= < | |||
|x2= <code>_myCourage = [[player]] [[skill]] "courage"</code> |EXAMPLE2= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[setSkill]], [[ | | [[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 --> | ||
<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> | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:AI]] | |||
[[Category:Scripting Commands|SKILL]] | [[Category:Scripting Commands|SKILL]] | ||
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]] | |||
[[Category:Scripting Commands OFP 1.96|SKILL]] | [[Category:Scripting Commands OFP 1.96|SKILL]] | ||
[[Category:Scripting Commands ArmA|SKILL]] | [[Category:Scripting Commands ArmA|SKILL]] | ||
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] |
Revision as of 14:49, 7 April 2019
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
Alternative Syntax
- Syntax:
- unitName skill skillName (since -wrong parameter ("Arma") defined!-1.00 or 1.00)
- Parameters:
- unitName: Object
- skillName: String - Possible values are:
- aimingAccuracy
- aimingShake
- aimingSpeed
- endurance
- spotDistance
- spotTime
- courage
- reloadSpeed
- commanding
- general
- Return Value:
- Number
Examples
Additional Information
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
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint: Resistance version 1.75
- Operation Flashpoint: Resistance: New Scripting Commands
- Operation Flashpoint: Resistance: Scripting Commands
- Command Group: Uncategorised
- AI
- Scripting Commands OFP 1.99
- Scripting Commands OFP 1.96
- Scripting Commands ArmA
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters