I find that trial and error is usually the best way to learn things. (As long as you use copies of scripts to do this with
) It's basically how I learned the scripts.
Some pointers would be:
sound={your unlocking sound} to play the relevent sound.
timerstart to reset the timer
timergreater={1/1000th seconds, e.g. 1000 = 1 second}
Work out the time it takes for the unlock sound to play (for example 1.2 seconds) and do something like:
:state=0,{conditions}:sound=audiobank\user\myunlocksound.wav,timerstart,state=1
:state=1,timergreater=1200:state=2
state=2 is the normal unlocking routines and sounds.
As to the seconds, combine the door unlocking scripts and the door use scripts. Use original door unlock script, when the door us opened, the state changes to a higher number where you put the door use script in.
Hope that makes sense.
Jas
----
"What is this talk of 'release'? Klingons do not'release' software. It escapes leaving a bloody trail of developers and quality assurance people in its wake!"