Changed cargo_hideUnit for already existing hideObjectGlobal event

This commit is contained in:
jonpas 2015-08-18 18:19:18 +02:00
parent 42bd8751aa
commit 16add9d376
3 changed files with 2 additions and 6 deletions

View File

@ -21,8 +21,4 @@ PREP(validateCargoSpace);
GVAR(initializedItemClasses) = [];
if (isServer) then {
["cargo_hideItem", {params ["_object", "_status"]; _object hideObjectGlobal _status;}] call EFUNC(common,addEventHandler);
};
ADDON = true;

View File

@ -32,6 +32,6 @@ _vehicle setVariable [QGVAR(space), _space - _itemSize, true];
detach _item;
_item attachTo [_vehicle,[0,0,100]];
["cargo_hideItem", [_item, true]] call EFUNC(common,serverEvent);
["hideObjectGlobal", [_item, true]] call EFUNC(common,serverEvent);
true

View File

@ -58,7 +58,7 @@ _vehicle setVariable [QGVAR(space), (_space + _itemSize), true];
detach _item;
_item setPosASL (_emptyPos call EFUNC(common,PositiontoASL));
["cargo_hideItem", [_item, false]] call EFUNC(common,serverEvent);
["hideObjectGlobal", [_item, false]] call EFUNC(common,serverEvent);
// TOOO maybe drag/carry the unloaded item?