Go Back   Novahq.net Forum > Games > Delta Force
FAQ Community Calendar Today's Posts Search

Delta Force Anything to do with the Delta Force series of games, DF1, DF2, LW, TFD, BHD, DFX, AF etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-09-2014, 01:35 AM
flamerboy67664 is offline flamerboy67664
Registered User

Join Date: Jul 2012
Location: Zakara Ward, Citadel
Posts: 35

// 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
Reply With Quote
  #2  
Old 05-09-2014, 05:11 AM
Guest001 is offline Guest001
Registered User

Join Date: Aug 2008
Posts: 4,971

Quote:
Originally Posted by flamerboy67664 View Post
// 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
// plays once
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
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 02:44 AM.




Powered by vBulletin®