destroy a created exit.

SamIam
26 Oct 2011, 15:57
How do you destroy an exit that you create? Say you have a trap door. If the door is opened then create the exit. If the player closes the door destroy the exit.

Alex
26 Oct 2011, 17:35
Unfortunately in the current version you can't specify a name for a created exit, so you can't delete it easily.

For a couple of workarounds, see viewtopic.php?p=19097#p19097

SamIam
26 Oct 2011, 21:37
Thanks Alex. I created an exit then destroyed it using the destroy object with the GetExitByLink(from room,to room) as the expression. It worked great.