BetterDeadThanZed

Spawn purchased vehicles in a specific location?

7 posts in this topic

I recently redesigned one of the traders on my server. The problem I am having is that the trader is surrounded by trees, so apparently no one can buy a car because it fails to find a safe spot to spawn the vehicles. I found this post: http://www.exilemod.com/topic/19-failed-to-purchase-vehicle13/#comment-33

It mentions that I could edit this code, but it doesn't explain what those numbers represent:

		{
			_position2d = 
			[
			    (getPosATL _playerObject), 
			    5,                  
			    80,            	 	
			    8,                 
			    0,                  
			    9999,               
			    0                   
			]
			call BIS_fnc_findSafePos;
		};

So, my questions are these:

Is there a way to force purchased vehicles to spawn in one location? If not, what numbers can I adjust in the above code to keep the vehicles spawning within the safe zone (It's a big trader city with lots of room).

Share this post


Link to post
Share on other sites
Advertisement

I have a fix for this that was created by one of my admins. With his permission I'll repost it here after work today or tomorrow. 

Share this post


Link to post
Share on other sites

You should be able to find what you're looking for within these 2 files: 

ExileServer_system_trading_network_purchaseVehicleRequest.sqf";
ExileServer_object_vehicle_database_load.sqf";

At least that's what ACiDy used for his custom trade and spawn zones. :) 

Share this post


Link to post
Share on other sites

Thanks ka0s but I've already worked it out. I've added helipads to the traders (Invisble ones for trader cities and visible ones for helicopter traders) and one of my admins edited the code to spawn the vehicles on the helipads. I'll share it when I'm home and have access to the code and can write up a tutorial.

3 people like this

Share this post


Link to post
Share on other sites
Advertisement

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

  • Recently Browsing   0 members

    No registered users viewing this page.