R3vo/Sandbox – User
m (overhaul) |
m (various changes) |
||
Line 1: | Line 1: | ||
==Overview== | |||
The AI is characterized by a set of [[AI Sub-skills|sub-skills]]. | |||
Value of each of the [[AI Sub-skills|sub-skills]] is inherited either from [[skill]] value (set by skill slider in [[Mission Editor: Units|Insert Unit]] dialogue (default 0.6) or [[setSkill]] command) or directly defined by [[setSkill]] command. | |||
This value is interpolated into the corresponding range. This range is defined by a range set in [[CfgAISkill]] influenced by the value that comes from ''Game Options/Difficulty - AI Level'' (skillAI or precisionAI in player's .Arma3Profile if aiLevelPreset=3 (custom) is used). | |||
==CfgAISkill== | ==CfgAISkill== | ||
CfgAISkill is a set of arrays, related to [[AI Sub-skills]], defining the interpolation curve of each of the sub-skill. | CfgAISkill is a set of arrays, related to [[AI Sub-skills]], defining the interpolation curve of each of the sub-skill. | ||
'''Example:''' | '''Example:''' | ||
In {w, x, y, z} value from (w,y) gets interpolated into (x,z). | |||
[[File:CfgAISkill.jpg|thumb|Interpolation with vanilla A3 CfgAISkill]] | [[File:CfgAISkill.jpg|thumb|Interpolation with vanilla A3 CfgAISkill]] | ||
''spotDistance[] = {0,0.2, 1,0.4};'' value in a range 0-1 will change into value in a range 0.2-0.4. | ''spotDistance[] = {0,0.2, 1,0.4};'' value in a range 0-1 will change into value in a range 0.2-0.4. | ||
''setSkill ["spotDistance", 0.5]'' results in ''skill "spotDistance"'' returning ''0.3'' | ''setSkill ["spotDistance", 0.5]'' results in ''skill "spotDistance"'' returning ''0.3'' | ||
===Notes=== | ===Notes=== | ||
More than 2 pairs of defining values can be used (minimum is 2 pairs). | More than 2 pairs of defining values can be used (minimum is 2 pairs). | ||
Line 15: | Line 23: | ||
'''See also:''' [[:Category:AI|AI]], [[AI Sub-skills]], [[skill]], [[setSkill]], [[setUnitAbility]] | '''See also:''' [[:Category:AI|AI]], [[AI Sub-skills]], [[skill]], [[setSkill]], [[setUnitAbility]] | ||
===Arma 3=== | ===Defaults Arma 3=== | ||
aimingAccuracy[] = {0, 0, 1, 1}; | aimingAccuracy[] = {0, 0, 1, 1}; | ||
aimingShake[] = {0, 0, 1, 1}; | aimingShake[] = {0, 0, 1, 1}; | ||
Line 28: | Line 36: | ||
==Sub-Skills== | ==Sub-Skills== | ||
[[File:AI_skill_and_level.png|thumb|AI skill/level/final skill]] | |||
Sub-skills are a set of parameters ultimately defining the individual AI unit performance in the game. | Sub-skills are a set of parameters ultimately defining the individual AI unit performance in the game. | ||
Line 93: | Line 102: | ||
==See Also== | ==See Also== | ||
*[[:Category:AI|AI]] | *[[:Category:AI|AI]] | ||
*[[ArmA:_Difficulty#Adjusting_Accuracy_Separately|ArmA Difficulty]] | *[[ArmA:_Difficulty#Adjusting_Accuracy_Separately|ArmA Difficulty]] | ||
*[[Combat Modes]] | *[[Combat Modes]] | ||
[[Category:Arma 3: Editing]] | [[Category:Arma 3: Editing]] | ||
[[Category:AI]] | [[Category:AI]] |
Revision as of 13:00, 22 June 2018
Overview
The AI is characterized by a set of sub-skills.
Value of each of the sub-skills is inherited either from skill value (set by skill slider in Insert Unit dialogue (default 0.6) or setSkill command) or directly defined by setSkill command.
This value is interpolated into the corresponding range. This range is defined by a range set in CfgAISkill influenced by the value that comes from Game Options/Difficulty - AI Level (skillAI or precisionAI in player's .Arma3Profile if aiLevelPreset=3 (custom) is used).
CfgAISkill
CfgAISkill is a set of arrays, related to AI Sub-skills, defining the interpolation curve of each of the sub-skill.
Example:
In {w, x, y, z} value from (w,y) gets interpolated into (x,z).
spotDistance[] = {0,0.2, 1,0.4}; value in a range 0-1 will change into value in a range 0.2-0.4. setSkill ["spotDistance", 0.5] results in skill "spotDistance" returning 0.3
Notes
More than 2 pairs of defining values can be used (minimum is 2 pairs).
The values are used to interpolate on run-time, so even after setting sub-skill by script command it will be interpolated and bound by this array.
See also: AI, AI Sub-skills, skill, setSkill, setUnitAbility
Defaults Arma 3
aimingAccuracy[] = {0, 0, 1, 1}; aimingShake[] = {0, 0, 1, 1}; aimingSpeed[] = {0, 0.5, 1, 1}; commanding[] = {0, 0, 1, 1}; courage[] = {0, 0, 1, 1}; endurance[] = {0, 0, 1, 1}; general[] = {0, 0, 1, 1}; reloadSpeed[] = {0, 0, 1, 1}; spotDistance[] = {0, 0, 1, 1}; spotTime[] = {0, 0, 1, 1};
Sub-Skills
Sub-skills are a set of parameters ultimately defining the individual AI unit performance in the game.
Name | Description |
---|---|
aimingAccuracy |
|
aimingShake |
|
aimingSpeed |
|
commanding |
|
courage |
|
endurance |
|
general |
|
reloadSpeed |
|
spotDistance |
|
spotTime |
|
Notes
Each sub-skill is used in several calculations. Value of each sub-skill is inherited from the value set by skill slider in Insert Unit dialogue or setSkill command, or more precisely with setSkill alternative syntax. This value is interpolated into ranges defined in CfgAISkill and multiplied by a value of AI Level Skill or Precision set in player's profile (.Arma3Profile file).