skill: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "AI Combat Modes" to "Combat Modes") |
Lou Montana (talk | contribs) m (Text replacement - "[[Arma 3 " to "[[Arma 3: ") |
||
(17 intermediate revisions by 3 users not shown) | |||
Line 2: | Line 2: | ||
|game1= ofp | |game1= ofp | ||
|version1= 1.75 | |version1= 1.75 | ||
|game2= ofpe | |game2= ofpe | ||
|version2= 1.00 | |version2= 1.00 | ||
|game3= arma1 | |game3= arma1 | ||
|version3= 1.00 | |version3= 1.00 | ||
|game4= arma2 | |game4= arma2 | ||
|version4= 1.00 | |version4= 1.00 | ||
|game5= arma2oa | |game5= arma2oa | ||
|version5= 1.50 | |||
|version5= 1. | |||
|game6= tkoh | |game6= tkoh | ||
|version6= 1.00 | |version6= 1.00 | ||
|game7= arma3 | |game7= arma3 | ||
|version7= 0.50 | |version7= 0.50 | ||
|gr1= | |gr1= AI Behaviour | ||
|descr= Returns current skill of a unit, in range between 0 to 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. | ||
| | {{Feature|informative| | ||
* 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. | |||
}} | |||
|s1= [[skill]] unit | |||
|p1= unit: [[Object]] | |p1= unit: [[Object]] | ||
Line 39: | Line 37: | ||
|r1= [[Number]] | |r1= [[Number]] | ||
|s2= | |s2= unit [[skill]] skillName | ||
|s2since= arma1 1.00 | |||
|p21= unit: [[Object]] | |p21= unit: [[Object]] | ||
|p22= skillName: [[String]] - | |p22= skillName: [[String]] - possible values are: | ||
{{Columns|5| | |||
* "aimingAccuracy" | * "aimingAccuracy" | ||
* "aimingShake" | * "aimingShake" | ||
Line 54: | Line 55: | ||
* "commanding" | * "commanding" | ||
* "general" | * "general" | ||
}} | |||
|r2= [[Number]] | |r2= [[Number]] | ||
|x2= < | |x1= <sqf>_skill = skill unit1;</sqf> | ||
|x2= <sqf>_myCourage = player skill "courage";</sqf> | |||
|seealso= [[skillFinal]] | |seealso= [[skillFinal]] [[setSkill]] [[setUnitAbility]] [[Arma 3: AI Skill]] [[Combat Modes]] | ||
}} | }} | ||
[[Category:AI]] | [[Category:AI]] |
Latest revision as of 10:38, 6 May 2024
Description
- Description:
- Returns current skill of a unit, in range between 0 to 1, 1 being the highest level of skill.
- Groups:
- AI Behaviour
Syntax
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:
- Example 2:
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
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.75
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Operation Flashpoint: Elite: Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: AI Behaviour
- AI