mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-17 17:20:26 +03:00
should fix issues with upgraded vehicle location
This commit is contained in:
@@ -65,8 +65,6 @@ _key call server_hiveWrite;
|
||||
|
||||
if(!_done) exitWith { diag_log("CUSTOM: failed to get id for : " + str(_uid)); };
|
||||
|
||||
_newobject = createVehicle [_class, [0,0,0], [], 0, "CAN_COLLIDE"];
|
||||
|
||||
// add items from previous vehicle here
|
||||
_weapons = getWeaponCargo _object;
|
||||
_magazines = getMagazineCargo _object;
|
||||
@@ -79,11 +77,11 @@ _key call server_hiveWrite;
|
||||
// Remove marker
|
||||
deleteVehicle _object;
|
||||
|
||||
_newobject = createVehicle [_class, _location, [], 0, "CAN_COLLIDE"];
|
||||
|
||||
// remove old vehicle from DB
|
||||
[_objectID,_objectUID,_activatingPlayer] call server_deleteObj;
|
||||
|
||||
|
||||
|
||||
// switch var to new vehicle at this point.
|
||||
_object = _newobject;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user