Revert to previous code for lock and unlock safes

Should fix dupe issues introduced with that newer system
This commit is contained in:
[VB]AWOL
2014-05-07 09:44:41 -05:00
parent 6193106f7f
commit e1577bc4f3
3 changed files with 20 additions and 62 deletions

View File

@@ -58,8 +58,23 @@ if(!isNull _obj) then {
_holder setVariable["ObjectUID",_objectUID,true];
_holder setVariable ["OEMPos", _pos, true];
PVDZE_obj_setlocalVars = [_obj,_holder,player];
publicVariableServer "PVDZE_obj_setlocalVars";
_weapons = getWeaponCargo _obj;
_magazines = getMagazineCargo _obj;
_backpacks = getBackpackCargo _obj;
// remove vault
deleteVehicle _obj;
// Fill variables with loot
if (count _weapons > 0) then {
_holder setVariable ["WeaponCargo", _weapons, true];
};
if (count _magazines > 0) then {
_holder setVariable ["MagazineCargo", _magazines, true];
};
if (count _backpacks > 0) then {
_holder setVariable ["BackpackCargo", _backpacks, true];
};
cutText [format[(localize "str_epoch_player_117"),_text], "PLAIN DOWN"];
};