|
Delta Force Anything to do with the Delta Force series of games, DF1, DF2, LW, TFD, BHD, DFX, AF etc. |
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
||
|
// plays once
if elapse(1) then text("Music: Top Gun: Hard Lock soundtrack 13") wave("topgun13.wav") endif //rain if elapse(1) then rain(100) overcast(70,30) skyspeed(80) endif Contents of my WAC |
#2
|
|||
|
Quote:
if elapse(1) then // This will repeat the wave file every 1 seconds and most likely fail text("Music: Top Gun: Hard Lock soundtrack 13") wave("topgun13.wav") endif //rain if elapse(1) then // In this the weather will work but the WAC will be firing every 1 seconds rain(100) overcast(70,30) skyspeed(80) endif You need to use and never() then to make it fire once. If you want it to repeat it, the elapsed time must be of longer duration than the period of execution. IE a 2 minute wave (=120 seconds) the recommended elapsed time would be 121 - IE: if past() and elapse(121) and waveready() and never() then if past() start playing immediately the player enters the game elapse(121) wait 121 seconds waveready() tells the engine to wait until there is no other sound playing. never() then execute once |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|