mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Rename cargo events:
- ace_cargoAddedByClass -> ace_cargoAdded - ace_addCargoByClass -> ace_addCargo
This commit is contained in:
parent
6f65155060
commit
28c41e0518
@ -1,6 +1,6 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
["ace_addCargoByClass", {_this call FUNC(addCargoItem)}] call CBA_fnc_addEventHandler;
|
||||
["ace_addCargo", {_this call FUNC(addCargoItem)}] call CBA_fnc_addEventHandler;
|
||||
|
||||
["ace_loadCargo", {
|
||||
params ["_item", "_vehicle"];
|
||||
|
@ -23,8 +23,8 @@ class ACE_newEvents {
|
||||
LoadCargo = "ace_loadCargo";
|
||||
cargoUnloaded = "ace_cargoUnloaded";
|
||||
cargoLoaded = "ace_cargoLoaded";
|
||||
AddCargoByClass = "ace_addCargoByClass";
|
||||
AddCargoByClass = "ace_addCargo";
|
||||
ServerUnloadCargo = QGVAR(serverUnload);
|
||||
UnloadCargo = "ace_unloadCargo";
|
||||
cargoAddedByClass = "ace_cargoByClassAdded";
|
||||
cargoAddedByClass = "ace_cargoAdded";
|
||||
};
|
||||
|
@ -26,4 +26,4 @@ for "_i" from 1 to _amount do {
|
||||
};
|
||||
|
||||
// Invoke listenable event
|
||||
["ace_cargoByClassAdded", [_itemClass, _vehicle, _amount]] call CBA_fnc_globalEvent;
|
||||
["ace_cargoAdded", [_itemClass, _vehicle, _amount]] call CBA_fnc_globalEvent;
|
||||
|
@ -29,7 +29,7 @@ if (isServer) then {
|
||||
_cargoClassname = getText (_x >> "type");
|
||||
_cargoCount = getNumber (_x >> "amount");
|
||||
TRACE_3("adding ACE_Cargo", (configName _x), _cargoClassname, _cargoCount);
|
||||
["ace_addCargoByClass", [_cargoClassname, _vehicle, _cargoCount]] call CBA_fnc_localEvent;
|
||||
["ace_addCargo", [_cargoClassname, _vehicle, _cargoCount]] call CBA_fnc_localEvent;
|
||||
};
|
||||
} count ("true" configClasses (configFile >> "CfgVehicles" >> _type >> "ACE_Cargo" >> "Cargo"));
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user