ID:174412
 
How can you make it so that you can only enter the turf from 1 direction?
use Enter() procedure to check when someone is trying to enter the turf, and Dir property to check what direction the mob is facing
Gokuss4neo wrote:
How can you make it so that you can only enter the turf from 1 direction?

There are various solutions to this, but here's the most straightforward:
turf/special
var/indir // only allow entry from this direction
var/outdir // only allow exit from this direction

Enter(atom/movable/A)
if(indir && get_dir(src, A) != indir) return 0
return ..()

Exit(atom/movable/A)
if(outdir && A.dir != outdir) return 0
return ..()
I did something similar for an exit, just for demonstration purposes.

Lummox JR