mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Minor private variable fixes (#4300)
This commit is contained in:
parent
2be3f46bcd
commit
df66b0876f
@ -20,7 +20,7 @@
|
|||||||
if (!isServer) exitWith {};
|
if (!isServer) exitWith {};
|
||||||
|
|
||||||
params ["_logic", "_syncedUnits", "_activated"];
|
params ["_logic", "_syncedUnits", "_activated"];
|
||||||
TRACE_3("params",_logic,_syncedObjects,_activated);
|
TRACE_3("params",_logic,_syncedUnits,_activated);
|
||||||
|
|
||||||
if (!_activated) exitWith {WARNING("Vehicle Lock Init Module - placed but not active");};
|
if (!_activated) exitWith {WARNING("Vehicle Lock Init Module - placed but not active");};
|
||||||
|
|
||||||
|
@ -24,26 +24,26 @@ TRACE_1("Params",_this);
|
|||||||
TRACE_6("AI settings updated",GVAR(GlobalSkillAI));
|
TRACE_6("AI settings updated",GVAR(GlobalSkillAI));
|
||||||
{
|
{
|
||||||
if (local _x) then {
|
if (local _x) then {
|
||||||
_unit setSkill ["general", _general];
|
_x setSkill ["general", _general];
|
||||||
_unit setSkill ["commanding", _general];
|
_x setSkill ["commanding", _general];
|
||||||
_unit setSkill ["courage", _general];
|
_x setSkill ["courage", _general];
|
||||||
_unit setSkill ["aimingAccuracy", _accuracy];
|
_x setSkill ["aimingAccuracy", _accuracy];
|
||||||
_unit setSkill ["aimingShake", _handling];
|
_x setSkill ["aimingShake", _handling];
|
||||||
_unit setSkill ["aimingSpeed", _handling];
|
_x setSkill ["aimingSpeed", _handling];
|
||||||
_unit setSkill ["reloadSpeed", _handling];
|
_x setSkill ["reloadSpeed", _handling];
|
||||||
_unit setSkill ["spotDistance", _spotting];
|
_x setSkill ["spotDistance", _spotting];
|
||||||
_unit setSkill ["spotTime", _spotting];
|
_x setSkill ["spotTime", _spotting];
|
||||||
|
|
||||||
if (_cover) then {
|
if (_cover) then {
|
||||||
_unit enableAI "COVER";
|
_x enableAI "COVER";
|
||||||
} else {
|
} else {
|
||||||
_unit disableAI "COVER";
|
_x disableAI "COVER";
|
||||||
};
|
};
|
||||||
|
|
||||||
if (_combat) then {
|
if (_combat) then {
|
||||||
_unit enableAI "AUTOCOMBAT";
|
_x enableAI "AUTOCOMBAT";
|
||||||
} else {
|
} else {
|
||||||
_unit disableAI "AUTOCOMBAT";
|
_x disableAI "AUTOCOMBAT";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
} forEach allUnits;
|
} forEach allUnits;
|
||||||
|
Loading…
Reference in New Issue
Block a user