ID:178619
 
How would I check to see if a tile has a mob on it? I tried:


var/turf/T = locate(x,y,z)

if(T.density) //doesn't check for mob density, only turf density

if(T.contents) //loops forever, don't know why
never mind; I figured it out

I know this must seem easy for many of you, but in case anyone else was wondering:


var/turf/T = locate(x,y,z)
if(locate(/mob) in T.contents) //true if mob is present
. . .