Jump to content
Sign in to follow this  
davidoss

Search for empty small area in a urban location.

Recommended Posts

Hi. I am looking for an solid method to get empty position in urban area,

where are many buildings and other objects. The desired area are small just to safely fit and spawn static gun.

 

Share this post


Link to post
Share on other sites

Thanks for pointing me in right direction. According to wiki example entry i got this:

 

fnc_findstaticpos = {

	params [["_anchor", [], [[]]]];

	private _return = [];
	private _max_distance = 15;
	
	while{ _return isEqualTo [] } do
	{
		_return = _anchor findEmptyPosition[ 5 , _max_distance , "O_TI_DSHKM_F" ];
		_max_distance = _max_distance + 5;
	};

_return
};

Any better proposition?

Share this post


Link to post
Share on other sites

I'm not new to scripting, but still learning. Altho if you want to specify the position even more you could add https://community.bistudio.com/wiki/selectBestPlaces I am currently working on a script like this but for random vehicle spawning I'll post the script once it's done so it helps you out. But the script you have atm might do the job but will probably have some bad results.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×