ID:145487
 
Code:HatchDoor
HeadMastersOffice
icon_state="HeadMastersOffice"
density=1
Click()
usr.loc=locate(196,32,3)
return


Problem description:i tryed to set it up to where you click it and it takes you to the oposite side you are on but i dont know how to do it so please help me.

It'd be better to keep a target variable for the door and have the player relocate to the target if it exists.
In response to Artemio
Um I'm not a coder so that makes no *bleep*ing sense to me sorry.
See [link].