Quote: "can see the solution?
"
Well , As long as you want it .
I just deleted the timers from the switch's script ( used to open the door ) , and added it to the door script it self ( The spawned characters have the same name of the door ) , so when the player uses the switch the enimies spawn and the door opens after 25 seconds .
Here're the two scripts :
Switch :
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecoretexttexthfp.dds,hudname=hfp1prompt,hudhide=1,hudmake=display,state=10
:state=10:hudreset,hudx=50,hudy=90,hudimagefine=gamecoretexttexthfp2.dds,hudname=hfp2prompt,hudhide=1,hudmake=display,state=1
:state=1,plrdistwithin=50:hudshow=hfp1prompt,state=2
:state=2,plrdistfurther=50:hudunshow=hfp1prompt,state=1
:state=2,plrusingaction=1:hudshow=hfp2prompt,hudunshow=hfp1prompt,alttexture=1,activateifused=1,state=3
Door :
:state=0,activated=1:timerstart,state=1
:state=1,timergreater=25000:state=2,setframe=0,sound=$0
:state=2:incframe=0
:state=2,frameatend=0:state=3,coloff
:state=3,activated=0:state=4,sound=$1,colon
:state=4:decframe=0
:state=4,frameatstart=0:state=5,setframe=0
That's it !
"I am the night visitor when everyone is sleep , and when the last light fades"
The illusionest