var/Y = rand(10,40)
var/X = rand(10,40)
src.loc=locate(X,Y,1)
And this bit works, but I also want it so that if it ISN'T grass he doesn't get placed there, so I put this:
for(var/turf/T in world)
if(istype(T,/turf/Grass))
var/obj/O = new /obj/Town_Center/
O.loc = T.loc
But he still, sometimes, gets placed on water or others! Please help!
~GokuSS4Neo~