of     1   

JiggIypuffs
#227619701Friday, November 17, 2017 12:14 AM GMT

hi im trying to scatter players over a map, but the issue is they keep spawning inside things. i've made a little fix for now by spawning them high above the map where they fall onto it, but i'm looking for something better. is there a way to find all the areas within an area that are empty? thanks in advance.
TaaRt
#227619787Friday, November 17, 2017 12:17 AM GMT

It depends a bit, if you're using instances as map you could use their size+position to determine that with FindPartsInRegion3, if you're using terrain I reckon rays are the best option (which is an alternative for instances as well)
JiggIypuffs
#227621548Friday, November 17, 2017 1:15 AM GMT

this seems like it can work. i can specify where the map is, because its dead center of the game at 0,0,0. its 2000 by 2000, so i can just spit out whats inside it and then spawn players in accordance to positions that aren't touching stuff? kinda confused as how to do this, im thinking a table with all the possible positions. is this a good idea?
TaaRt
#227621740Friday, November 17, 2017 1:22 AM GMT

I reckon a table with possible positions works, but in practice it might even be easier to simply make designated spots (just flat bricks work well, just make them transparent and not solid) and have them spawn anywhere within the position of that brick +/- size*0.5
JiggIypuffs
#227672803Saturday, November 18, 2017 5:14 PM GMT

having some issues finding the coordinates of spaces that aren't taken
JiggIypuffs
#227673702Saturday, November 18, 2017 5:36 PM GMT

bump
iiNemo
#227674139Saturday, November 18, 2017 5:46 PM GMT

Find a random position and put a region3 of teh size of zee player then check if theres a part in region 3 if not then thats ur location Fish Are Friends, Not Food

    of     1