@ nnn
It's looks as if your character is from the science pack (the teacher) correct?
I changed the script a bit, after he is triggered, when player approaches him he falls back and is dragged through door.
Here are the two scripts I used for this. One for the character and another for the door.
;Header
desc = follow waypoints die
:state=0:animate=8
:state=0,plrdistwithin=150:setframe=11,state=1
:state=1:incframe=11
:state=1,frameatend=11:state=2
:state=2,waypointstate=0:waypointstart
:state=2,waypointstate=3:waypointnext
:state=2,waypointstate=5:waypointreverse,destroy
;End of Script
And the door script, note: attach door script the it's "Start AI" not the Main AI.
Use "default.fpi" for the main script. By attaching to the start ai the door reacts much quicker..
;Header
desc = entity within open door
;Triggers
:state=0,anywithin=50:state=1,setframe=0,sound=$0
:state=1:incframe=0
:state=1,frameatend=0:state=2,coloff
:state=2,anyfurther=100:state=3,sound=$1,colon
:state=3:decframe=0
:state=3,frameatstart=0:state=0,setframe=0
;End of Script
It's up to you to supply the sounds needed. If you need more help just ask
best
My games never have bugs. They just develop random features..
Lots and lots of random features...