mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Put _item in vehicle in vehicle if possible
This commit is contained in:
parent
af2973a9f0
commit
31426104e1
@ -35,11 +35,13 @@ _vehicle setVariable [QGVAR(space), _space - _itemSize, true];
|
|||||||
|
|
||||||
if (_item isEqualType objNull) then {
|
if (_item isEqualType objNull) then {
|
||||||
detach _item;
|
detach _item;
|
||||||
|
if !(_vehicle setVehicleCargo _item) then {
|
||||||
_item attachTo [_vehicle,[0,0,-100]];
|
_item attachTo [_vehicle,[0,0,-100]];
|
||||||
[QEGVAR(common,hideObjectGlobal), [_item, true]] call CBA_fnc_serverEvent;
|
[QEGVAR(common,hideObjectGlobal), [_item, true]] call CBA_fnc_serverEvent;
|
||||||
|
|
||||||
// Some objects below water will take damage over time and eventualy become "water logged" and unfixable (because of negative z attach)
|
// Some objects below water will take damage over time and eventualy become "water logged" and unfixable (because of negative z attach)
|
||||||
[_item, "blockDamage", "ACE_cargo", true] call EFUNC(common,statusEffect_set);
|
[_item, "blockDamage", "ACE_cargo", true] call EFUNC(common,statusEffect_set);
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
true
|
true
|
||||||
|
Loading…
Reference in New Issue
Block a user