ID:271667
 
Is there a way to make an icon so that a person may walk over it but an NPC can't follow through it?
turf/npcblock
Entered()
if(istype(/mob/player/)
..()
else if(istype(/mob/npc/)
return 0


Haven't tried it myself, doubt it's correct. If it's not, wait for one of the better coders to come around.
In response to LucifersHellion
you can of course overwrite the bump() and use istype(), just look them up in the DM guide
In response to LucifersHellion
Actually, what you're looking for is Enter(atom/movable/A) instead of Entered(). Your istype() should be written like istype(A,/mob/player) and your ..() should be return ..().

In fact, the entire concept of it is wrong since you're only trying to allow /mob/player types to move through -- /mob/somethingelse won't be able to move through and neither will /obj/rocket.

Here's the fixed version:

turf/npcblock
Enter(atom/movable/A)
if(istype(A,/mob/npc) return 0
return ..()


-- Data