Maybe fix disappear from the Vault while unlocking

This commit is contained in:
Skaronator committed 2014-01-25 23:19:35 +01:00
1 parent 23e509053e
commit 60ec596bd3
1 file changed
+3
@@ -70,6 +70,9 @@ if ((_ownerID == dayz_combination) or (_ownerID == dayz_playerUID)) then {
_backpacks = _obj getVariable["BackpackCargo",[]];
_holder = createVehicle [_unlockedClass,_pos,[], 0, "CAN_COLLIDE"];
if ((isNull _holder) or (isNil "_holder")) then {
_holder = createVehicle [_unlockedClass,_pos,[], 0, "CAN_COLLIDE"];
};
// Remove locked vault
deleteVehicle _obj;
_holder setdir _dir;