ID:149819
 
Ok I'm needing help with using occupied since I have never needed that var till now. I need it so the code will check if a turf is occupied, and if it is, it will send it to another turf and to keep checking if the turf is occupied until it finds one unoccupied.
A simple example will be helpful, thats all I ask of.
Heres a simple example.
Login()
world << "<b>[usr] has entered."
usr.Move(locate(1,1,1))
for(var/turf/T in oview(locate(1,1,1)))
if(!T.contents.len && !T.density)
loc=T
break



Hope i helped.

-Rcet