CfgAISkill: Difference between revisions
Jump to navigation
Jump to search
(Add v1.66 defaults) |
|||
Line 15: | Line 15: | ||
'''See also:''' [[:Category:AI|AI]], [[AI Sub-skills]], [[skill]], [[setSkill]], [[setSkill array]], [[setUnitAbility]] | '''See also:''' [[:Category:AI|AI]], [[AI Sub-skills]], [[skill]], [[setSkill]], [[setSkill array]], [[setUnitAbility]] | ||
==Arma 3== | ==Arma 3== | ||
aimingAccuracy[] = {0, 0, 1, 1}; | aimingAccuracy[] = {0, 0, 1, 1}; | ||
aimingShake[] = {0, 0, 1, 1}; | aimingShake[] = {0, 0, 1, 1}; | ||
aimingSpeed[] = {0, 0.5, 1, 1}; | aimingSpeed[] = {0, 0.5, 1, 1}; | ||
Line 23: | Line 23: | ||
general[] = {0, 0, 1, 1}; | general[] = {0, 0, 1, 1}; | ||
reloadSpeed[] = {0, 0, 1, 1}; | reloadSpeed[] = {0, 0, 1, 1}; | ||
spotDistance[] = {0, 0 | spotDistance[] = {0, 0, 1, 1}; | ||
spotTime[] = {0, 0, 1, 0.7}; | spotTime[] = {0, 0, 1, 0.7}; | ||
[[Category:Arma 3: Editing]] | [[Category:Arma 3: Editing]] | ||
[[Category:AI]] | [[Category:AI]] |
Revision as of 22:59, 2 February 2017
Overview
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)
Example:
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, setSkill array, setUnitAbility
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, 0.7};