Jump to content
  • 0

Vehicles spawning relative to 0,0,0 instead of center


Mr White

Question

I've been attempting to rebuild my server, newer scripts and just getting my brain back into the scripting.

Things generally go well, until <insert random catastrophe>. Then I have to start over. Recently, the latest discovery before completion is that vehicles are spawning relative to 0,0,0 instead of center. They just seem to huddle at the lower island, pack full, and then stop. If I do this with a bare set of config files, no issue. So yeah, something I added (or added improperly) is causing this but I don't know what. My hope is to fix it, rather than start over and then have to test spawning every time.

BIS-center.jpg

Any thoughts or tips, otherwise I just chew it up and start over. No errors in the log, real clean stuff oddly enough.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

My guess would be world size, spawn radius or map center is messed up, it's been a long time since i touched anything A2 related, i don't recall where the values for them are, have a look and check, you'll need to delete all them vehicles and respawn when you fix it.

Link to comment
Share on other sites

  • 0

Right now I am working in a test server, so I wipe when I restart to see if changes fix it. So far the spawn_vehicles function is bone stock.

This appears to work, but I'm not feeling the love on it. In server_functions.sqf I had to hard code the center location. From that, things seem to be .. . . ... ... better?

// Get all buildings && roads only once TODO: set variables to nil after done if nessicary 
//MarkerPosition = getMarkerPos "center";
MarkerPosition = [10000,10000,0];

just not sure why the added gobledeegoop would make the game decide center was 0,0

MarkerPosition doesn't appear much in the files, just in one of the modules... unless it is tied to the respawn points I cleaned up in the mission.sqm after installing dayzgm. Guess I can put them back in just for laughs.

oh, hey... look

		class Item0
		{
			position[]={10442.41,86.282227,10438.262};
			name="center";
			type="Empty";
		};

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...