The following code is used in a trigger zone. I start out with disabling the player as I don't want the player moving around while he reads and listens to several scripts as a form of introduction. I am not exactly sure (although I could add up the audio lengths) of how long to disable the player so I just assign it a very large number. The number represents milliseconds. When I am done with this segment I end the script by assigning 0 to the plrdisable command and destroy the triggerzone/script.
==================================================
.
.
.
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=dialogpittmichael_intro3.png,hudname=intro_michael3,hudhide=1,hudmake=display
:state=0:state=1
:state=1,plrwithinzone=1:loopsound=$0,
plrdisable=500000,state=2
:state=2:state=3,sound=audiobankpittmichael_intro5.ogg,timerstart
:state=3,timergreater=2398:activateifused=1,state=4,timerstart
.
.
.
:state=2000,timergreater=250:hudshow=d2self1,sound=audiobankpittlevel01_d2self01.ogg,state=2010,timerstart
:state=2010,timergreater=4311:hudunshow=d2self1,state=2050
:state=2050:
plrdisable=0,destroy
The past has a lot of memories to hold onto; but, today is chock full of new adventures, and, the future shouts out, "The best is yet to come!" -- TerryC