mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
10 lines
303 B
Plaintext
10 lines
303 B
Plaintext
|
private ["_unit"];
|
||
|
|
||
|
_unit = _this select 0;
|
||
|
|
||
|
// Substitute wind calculations for AI by lowering accuracy
|
||
|
if !(isPlayer _unit) exitWith {
|
||
|
_windStrength = sqrt((wind select 0) ^ 2 + (wind select 1) ^ 2);
|
||
|
_unit setSkill ["aimingAccuracy", (_unit skill "aimingAccuracy") * (1 - _windStrength / 14)];
|
||
|
};
|