ID:178670
 
hey how do i make a room??? So when they walk in a door they enter a room? thx


- Akarat
turf/Door()
Entered()
usr.loc=locate(your,room,here)
In response to NilFisk
NilFisk wrote:
turf/Door()
Entered()
usr.loc=locate(your,room,here)

Dont you need some type of mob defining there so when an obj gets droped on that area it doesnt get sent to the location.
In response to Green Lime
i was just pointing out how to teleport to the room, thats all, if you want it so NPCs cannot teleport on it, do this
turf/door
Entered(mob/M as mob)
if(!M.client)
return..()
else
M.loc=locate(your,room,here)
i think thats right, not sure.
In response to NilFisk
NilFisk wrote:
i was just pointing out how to teleport to the room, thats all, if you want it so NPCs cannot teleport on it, do this
turf/door
Entered(mob/M as mob)
if(!M.client)
return..()
else
M.loc=locate(your,room,here)
i think thats right, not sure.

Yes, that's much better than your original code. (Putting usr in Entered() is a big no-no.)

Lummox JR