taterwrecks 10 Posted May 14, 2022 Creating a wave defense game and almost finished except for that I have decided to switch from spawning on predefined markers to Random spawning in an area marker. I'm trying to setup respawns in a large area with a blacklisted center area that prevents AI from spawning too close to the players. (and additional blacklist areas to prevent spawning in bad terrain) How do I prevent enemies from spawning in these stacked marker locations with defined areas that cannot be randomly spawned in? Share this post Link to post Share on other sites
Harzach 2507 Posted May 14, 2022 https://community.bistudio.com/wiki/BIS_fnc_randomPos in conjunction with https://community.bistudio.com/wiki/BIS_fnc_findSafePos Or really, just one or the other. 1 Share this post Link to post Share on other sites
taterwrecks 10 Posted May 14, 2022 Thank you very much!! Share this post Link to post Share on other sites
Larrow 2801 Posted May 15, 2022 Doesn't use findSafePos but if you already have all your areas marked as per OP then this may help. Does land/water/elevation and can be provided with multiple white/blacklists as either markers, triggers or areas( [position, radius] ) even does within edge distance of an area. Old but still works from a quick run of the example mission. 1 Share this post Link to post Share on other sites