Check For Blockage in Developer Help
|
|
Okay so I have an object called /obj/Doors/Metal_Door. Before it closes I would like it to make a check that there are no mobs at it's location but I've been 100% unsuccessful.
Objects unfortunately don't have oview() or view() and when I do var/mob/M = /mob if(M in contents) it can't find anything so I'm stumped. If it's not in the contents and I can't check what's visible then how can I check if there's anything there?
I also tried placing a temporary mob object at the doors location but for strange reason it was duplicating the player and leaving them in the doorway even though I specified a mob of type mob/Holder.
I don't know. Any help? Thank you.
|