CfgAISkill: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Added category.)
No edit summary
Line 1: Line 1:
{{Stub}}
==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)


=Introduction=
'''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).


==aimingAccuracy==
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.
[[TokenNameValueTypes|Array]]<br>
==Arma 3==
'''Description:''' ?
  aimingAccuracy[] = {0, 0, 1, 1};  
  aimingAccuracy[] = {0, 0, 1, 1};
 
==aimingShake==
[[TokenNameValueTypes|Array]]<br>
'''Description:''' ?
  aimingShake[] = {0, 0, 1, 1};
  aimingShake[] = {0, 0, 1, 1};
==aimingSpeed==
[[TokenNameValueTypes|Array]]<br>
'''Description:'''  ?
  aimingSpeed[] = {0, 0.5, 1, 1};
  aimingSpeed[] = {0, 0.5, 1, 1};
==commanding==
[[TokenNameValueTypes|Array]]<br>
'''Description:''' ?
  commanding[] = {0, 0, 1, 1};
  commanding[] = {0, 0, 1, 1};
==courage==
[[TokenNameValueTypes|Array]]<br>
'''Description:''' ?
  courage[] = {0, 0, 1, 1};
  courage[] = {0, 0, 1, 1};
==endurance==
[[TokenNameValueTypes|Array]]<br>
'''Description:''' ?
  endurance[] = {0, 0, 1, 1};
  endurance[] = {0, 0, 1, 1};
==general==
[[TokenNameValueTypes|Array]]<br>
'''Description:''' ?
  general[] = {0, 0, 1, 1};
  general[] = {0, 0, 1, 1};
==reloadSpeed==
[[TokenNameValueTypes|Array]]<br>
'''Description:''' ?
  reloadSpeed[] = {0, 0, 1, 1};
  reloadSpeed[] = {0, 0, 1, 1};
==spotDistance==
[[TokenNameValueTypes|Array]]<br>
'''Description:''' Defines the AI's probability of spotting targets within their visual range.<br>
'''Values:''' {''low_skill_value'', ''low_skill_spotting_probability'', ''high_skill_value'', ''high_skill_spotting_probability''}<br>
'''Details:''' AI with a skill value at or lower than ''low_skill_value'' will have a ''low_skill_spotting_probability'' chance of spotting a target. AI with a skill value at or ''above high_skill_value'' will have a ''high_skill_spotting_probability'' chance of spotting a target.
  spotDistance[] = {0, 0.2, 1, 0.4};
  spotDistance[] = {0, 0.2, 1, 0.4};
==spotTime==
[[TokenNameValueTypes|Array]]<br>
'''Description:''' ?
  spotTime[] = {0, 0, 1, 0.7};
  spotTime[] = {0, 0, 1, 0.7};


[[Category:ArmA: Addon Configuration]]
[[Category:Arma 3: Editing]]
[[Category:AI]]
[[Category:AI]]

Revision as of 15:11, 26 November 2013

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.

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.2, 1, 0.4};
spotTime[] = {0, 0, 1, 0.7};