ID:148626
 
I want this turf to send only mob/pc to the designated area, but whenever a monster enters, it send him too. Whats wrong w/ it?

turf/hexit
icon = 'turf.dmi'
icon_state = "hexit"
Entered(pc)
usr.loc=locate(6,2,2)
Kamion wrote:
I want this turf to send only mob/pc to the designated area, but whenever a monster enters, it send him too. Whats wrong w/ it?

turf/hexit
icon = 'turf.dmi'
icon_state = "hexit"
Entered(M)
if(istype(M,/mob/pc))
M.loc=locate(6,2,2)
else
world << "[M] is ugly!"
Kamion wrote:
I want this turf to send only mob/pc to the designated area, but whenever a monster enters, it send him too. Whats wrong w/ it?

turf/hexit
icon = 'turf.dmi'
icon_state = "hexit"
Entered(pc)
usr.loc=locate(6,2,2)

Odd; it shouldn't be sending a monster, because you botched this proc. It should be giving you a "cannot read null.loc" error instead every time a monster moves, or moving you instead. usr has no place in movement procs.

I refer you back to Dream Tutor: usr Unfriendly for more info on how to set up an Entered() proc correctly.

Lummox JR