ID:157292
 
I have a gate. I want to only be able to enter the gate from the south area of it(the icon), not from any other direction. Is there any way I can go about doing this?
turf/The_gate_to_wonka_wonderbland_land_of_nothingness
Enter(mob/M) // Calls when an object tries entering the turf.
if(!ismob(M)) // If a non-/mob tries to enter, it is DOOMED!
del M

if(M.dir & NORTH) // This is assuming that the gate is pointing southwards; a person entering northwards (N, NE, NW) can access the gate. If you want to check if they specifically come from the south, do M.dir == North
M.loc = locate(THE VOID)
return 0 // Deny access