Smaller BugFixes

This commit is contained in:
He-Man 2020-02-11 18:49:03 +01:00
parent ce07d89642
commit e4859f1862
2 changed files with 26 additions and 0 deletions

View File

@ -89,3 +89,26 @@ if (_woman == 1) then {
};
};
};
_tocheckfor = switch _item do {
case (uniform player): {uniformcontainer player};
case (vest player): {vestcontainer player};
case (backpack player): {backpackcontainer player};
default {objnull};
};
if (!isnull _tocheckfor) then {
{
_target = _x;
_subcontainers = everyContainer _target;
{
_subcontainer = _x;
if (_tocheckfor == (_subcontainer select 1)) then {
switch _item do {
case (uniform player): {removeUniform player;};
case (vest player): {removeVest player;};
case (backpack player): {removeBackpack player;};
};
};
} foreach _subcontainers;
} foreach (nearestobjects [player,['WeaponHolder','WeaponHolderSimulated','MAN','Landvehicle','SHIP','AIR','ReammoBox_F'],10]);
};

View File

@ -16,4 +16,7 @@ params ["_unit","_container"];
if !(EPOCH_arr_interactedObjs isEqualTo[]) then {
[EPOCH_arr_interactedObjs] remoteExec['EPOCH_server_save_vehicles', 2];
EPOCH_arr_interactedObjs = [];
};
if !(player == Vehicle Player) then {
call EPOCH_ReloadLoadout;
};