mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Changed cargo_hideUnit for already existing hideObjectGlobal event
This commit is contained in:
parent
42bd8751aa
commit
16add9d376
@ -21,8 +21,4 @@ PREP(validateCargoSpace);
|
|||||||
|
|
||||||
GVAR(initializedItemClasses) = [];
|
GVAR(initializedItemClasses) = [];
|
||||||
|
|
||||||
if (isServer) then {
|
|
||||||
["cargo_hideItem", {params ["_object", "_status"]; _object hideObjectGlobal _status;}] call EFUNC(common,addEventHandler);
|
|
||||||
};
|
|
||||||
|
|
||||||
ADDON = true;
|
ADDON = true;
|
||||||
|
@ -32,6 +32,6 @@ _vehicle setVariable [QGVAR(space), _space - _itemSize, true];
|
|||||||
|
|
||||||
detach _item;
|
detach _item;
|
||||||
_item attachTo [_vehicle,[0,0,100]];
|
_item attachTo [_vehicle,[0,0,100]];
|
||||||
["cargo_hideItem", [_item, true]] call EFUNC(common,serverEvent);
|
["hideObjectGlobal", [_item, true]] call EFUNC(common,serverEvent);
|
||||||
|
|
||||||
true
|
true
|
||||||
|
@ -58,7 +58,7 @@ _vehicle setVariable [QGVAR(space), (_space + _itemSize), true];
|
|||||||
|
|
||||||
detach _item;
|
detach _item;
|
||||||
_item setPosASL (_emptyPos call EFUNC(common,PositiontoASL));
|
_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?
|
// TOOO maybe drag/carry the unloaded item?
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user