ID:176346
Jan 22 2003, 1:59 pm
|
|
Hey, anyone have an idea how to make it so...when an obj is placed randomly on a map, that they don't land on a dense turf/mob?
|
Copyright © 2024 BYOND Software.
All rights reserved.
You can either do this check in the random obj generator, or in the objects New() proc. (Probably safer to do it in the generator)
Something like this:
The for(var/atom/movable/A in T) simply checks turf T for any mobs or objs, and sees if they are dense. (If we find a dense one, break the loop because there is no point to continue.)
-<font color="#33ff#33">Nova</font>