change this line:
:state=0,state=1, loopsound=audio\\atmos\\alarm.wav
to this:
:state=0:loopsound=audio\atmos\alarm.wav,state=1
A few tips on scripting:
1. All lines of script (except the desc= and commented lines) need to have two colons (
in them. The first colon tells FPSC to check that the conditions specified are true. The second colon tells FPSC what actions to take when the specified conditions are true. In your line above, the portion
means that FPSC needs to check if the current state for this script is 0. If it is, it then moves on to the next
portion :loopsound=audio\atmos\alarm.wav, state=1
and then performs these actions.
2. You'll notice that in your first script there were a couple of places where you had \\ in the wav path. You don't need two of them, only one. Like this: audio
\atmos
\alarm.wav.
Keep at it - you'll get better!
Priest of the Church of Joe Wood
In memory of Nanee. 9/1/1993 - 5/16/2009. Rest in Peace, little girl.