ID:148380
 
I know the code for oepening doors

obj/door2
icon='door.dmi'
icon_state="2"
density=1
var
open=0
Click()
if(src.open==0)
src.icon_state="2open"
src.density=0
src.open=1
else
src.icon_state="2"
src.density=1
src.open=0

works great i just want it so once the door is opened if you walk in you are transpotrted to a new spot. 1,1,2 actually is where I want it to be. If you could help em it would be gretaly appreciated
Generally, doors work better as turfs than as objs. You should change your door to a turf and then update the map accordingly. Then, check the FAQ entry on teleporting mobs.