Jump to content
  • 0

Server spawned vehicles "rubberbanding" after a restart.


ElDubya

Question

I have searched for a few hours now to no avail. Maybe I am searching using the wrong words or something because I am SURE someone else was having this issue a while back?

 

Anyway ....

 

I find a server spawned vehicle and get in it and drive it around for a while. Restart happens and when I rejoin the server, the vehicle has "rubberbanded" back to where I found it the first time. Essentially every spawn vehicle will be in EXACTLY the same spot it was when the server first spawned them in, regardless of how many I have moved/used.

 

Any ideas where I should start looking for errors please as both RPT's are error free. :( 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
_object_position = {
	private["_position","_worldspace","_fuel","_key"];
		_position = getPosATL _object;
		_worldspace = [
			(getDir _object) call KK_fnc_floatToString,
			_position call KK_fnc_positionToString
		];
		_fuel = 0;
		if (_object isKindOf "AllVehicles") then {
			_fuel = fuel _object;
		};
		_key = format["CHILD:305:%1:%2:%3:",_objectID,_worldspace,_fuel];
		//diag_log ("HIVE: WRITE: "+ str(_key));
		_key call server_hiveWrite;
};

It's been altered for Precise Base Building. The problem only happens with server spawned unlocked vehicles. Ones from the trader with a key seem to be exempt.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...