Fix cargo event name - spare parts not being added

This commit is contained in:
PabstMirror 2016-07-01 23:14:20 -05:00
parent a497690bbd
commit d15330d245
5 changed files with 5 additions and 5 deletions

View File

@ -25,5 +25,5 @@ class ACE_newEvents {
setWheelHitPointDamage = QGVAR(setWheelHitPointDamage);
setVehicleHitPointDamage = QGVAR(setVehicleHitPointDamage);
setVehicleDamage = QGVAR(setVehicleDamage);
AddCargoByClass = "ace_addCargoByClass";
AddCargoByClass = "ace_addCargo";
};

View File

@ -33,4 +33,4 @@ if (!EGVAR(common,settingsInitFinished)) exitWith {
if (!_force && !GVAR(addSpareParts)) exitWith {};
// Load
["ace_addCargoByClass", [_part, _vehicle, _amount]] call CBA_fnc_localEvent;
["ace_addCargo", [_part, _vehicle, _amount]] call CBA_fnc_localEvent;

View File

@ -58,5 +58,5 @@ class ACE_newEvents {
zeusUnitAssigned = QGVAR(zeusUnitAssigned);
SetSurrendered = QEGVAR(captives,setSurrendered);
SetHandcuffed = QEGVAR(captives,setHandcuffed);
AddCargoByClass = "ace_addCargoByClass";
AddCargoByClass = "ace_addCargo";
};

View File

@ -32,7 +32,7 @@ if !(["ace_cargo"] call EFUNC(common,isModLoaded) && ["ace_repair"] call EFUNC(c
if (getNumber (configFile >> "CfgVehicles" >> "ACE_Track" >> QEGVAR(cargo,size)) > [_mouseOverUnit] call EFUNC(cargo,getCargoSpaceLeft)) then {
[LSTRING(OnlyEnoughCargoSpace)] call EFUNC(common,displayTextStructured);
} else {
["ace_addCargoByClass", ["ACE_Track", _mouseOverUnit, 1, true]] call CBA_fnc_localEvent;
["ace_addCargo", ["ACE_Track", _mouseOverUnit, 1, true]] call CBA_fnc_localEvent;
};
};
};

View File

@ -32,7 +32,7 @@ if !(["ace_cargo"] call EFUNC(common,isModLoaded) && ["ace_repair"] call EFUNC(c
if (getNumber (configFile >> "CfgVehicles" >> "ACE_Wheel" >> QEGVAR(cargo,size)) > [_mouseOverUnit] call EFUNC(cargo,getCargoSpaceLeft)) then {
[LSTRING(OnlyEnoughCargoSpace)] call EFUNC(common,displayTextStructured);
} else {
["ace_addCargoByClass", ["ACE_Wheel", _mouseOverUnit, 1, true]] call CBA_fnc_localEvent;
["ace_addCargo", ["ACE_Wheel", _mouseOverUnit, 1, true]] call CBA_fnc_localEvent;
};
};
};