ID:155775
 
Right so i want it so when a npc enters a turf area it walks in a certain direction. I've had a guess at how this would be possible.

turf
ea
Enter()
if(!client) // not sure if i could use ismob? not sure if thats even a proc in DM I'm at work right now.
//walking stuff
else
return


This maybe bad practice not sure, but I'm at work so yeah.
I would use Entered but looks good! , but your npc will not be able to enter the turf the way you have it
In response to Warriormax
How would i go about making it possible so an NPC is allowed to enter?
In response to Rickoshay
If I was you I would make your NPCs a subset of Mob.

e.g.
mob/NPC/player

Then you could use if(istype(src,/mob/NPC)) to check its an NPC, rather than just looking to see if has a client or not.
Holy.
turf/Enter(atom/movable/a)
if(ismob(a))
var/mob/M = a
if(M.client) return 1
return ..()


That's for basic entering/non-entering.