davidoss 550 Posted December 25, 2016 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
Sciirof 6 Posted December 25, 2016 I hope this helps out. https://community.bistudio.com/wiki/findEmptyPosition Share this post Link to post Share on other sites
davidoss 550 Posted December 25, 2016 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
Sciirof 6 Posted December 26, 2016 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