ID:271667
Aug 30 2007, 1:35 pm
|
|
Is there a way to make an icon so that a person may walk over it but an NPC can't follow through it?
|
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 -- Data |
Haven't tried it myself, doubt it's correct. If it's not, wait for one of the better coders to come around.