mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Fix vehicles bouncing when upgrading.
This helps stop vehicles bouncing when being upgraded. The Vehicle Key Changer script I rewrote uses the epoch vehicle upgrade system to claim/change the vehicle key, we noticed that it was causing the vehicles to bounce, but VKC uses all the position functions from the epoch script so it's not something that VKC has introduced.
This commit is contained in:
@@ -45,7 +45,7 @@ _key call server_hiveWrite;
|
||||
_class = _this select 3;
|
||||
_dir = _this select 4;
|
||||
// _location = _this select 5;
|
||||
_location = getPosATL _object;
|
||||
_location = [_object] call fnc_getPos;
|
||||
_donotusekey = _this select 6;
|
||||
_activatingPlayer = _this select 7;
|
||||
|
||||
@@ -111,6 +111,7 @@ _key call server_hiveWrite;
|
||||
|
||||
_object setDir _dir;
|
||||
_object setPosATL _location;
|
||||
_object setVectorUp surfaceNormal _location;
|
||||
|
||||
//Add weapons
|
||||
_objWpnTypes = _weapons select 0;
|
||||
|
||||
Reference in New Issue
Block a user