This is a small script for a Oneway door.
The door automatically opens if the player is near the door on one side, on the opposite side the door cannot be open. As the player has walked through the door, the door closes
Usage
Place a remote door and set the Oneway script as main script
;Artificial Intelligence Script
;Header
desc = Oneway Door
:state=0,activated=1:state=1,setframe=0,sound=$0
:state=1:incframe=0
:state=1,frameatend=0:state=2,coloff
:state=2,activated=0:state=3,sound=$1,colon
:state=3:decframe=0
:state=3,frameatstart=0:state=0,setframe=0
;End of Script
Place a trigger zone in front of the door
Set the Onewaydoorzone script to main
;Artificial Intelligence Script
;Header
desc = Oneway Door Zone
:state=0,plrwithinzone=1:activateifused=1,sound=$0,state=1
:state=1,plrwithinzone=0:activateifused=0,state=0
;End of Script
Set the remote door you just created as the ifused item of the triggerzone