Fixes (NON para spawn) de-spawning of purchased vehicles.

This commit is contained in:
vbawol
2013-06-22 08:49:41 -05:00
parent 8c44e03df3
commit b1d6206b90
2 changed files with 4 additions and 1 deletions

View File

@@ -74,6 +74,9 @@ _key call server_hiveWrite;
_object = createVehicle [_class, _location, [], 0, "CAN_COLLIDE"];
};
// Lock vehicle
_object setvehiclelock "locked";
clearWeaponCargoGlobal _object;
clearMagazineCargoGlobal _object;

View File

@@ -20,7 +20,7 @@ if ((typeName _objectID != "string") || (typeName _uid != "string")) then
_objectID = "0";
_uid = "0";
};
if (!_parachuteWest) then {
if (!_parachuteWest and !(locked _object)) then {
if (_objectID == "0" && _uid == "0") then
{
_object_position = getPosATL _object;