Jump to content
Sign in to follow this  
USMC Sniper

Time between sounds

Recommended Posts

I made some ingame sounds (like ambient stuff), and I'm wondering if theres a way of making there be a period of time in between when the sound is played, or randomizing it but having a minumum of 2 minutes in between. rock.gif

Share this post


Link to post
Share on other sites

I am no sound expert,sounds like you need a script

Share this post


Link to post
Share on other sites

try this  wink_o.gif

#start

_nrand = random(10)

?_nrand >= 5: goto "sound1"

?_nrand >= -10: goto "sound2"

#sound1

playsound "??"

~120

GOTO "start"

#sound2

playsound "??"

~120

GOTO "start"

or

#start

_nrand = random(10)

?_nrand >= 5: goto "sound1"

?_nrand >= -10: goto "sound2"

#sound1

playsound "??"

~120

GOTO "sound2"

#sound2

playsound "??"

~120

GOTO "start"

Dont forget that the ~120 should be 120 seconds after the time of you music? track.

eg if your track was 60 seconds long it would then be this

#sound1

playsound "??"

~180

GOTO "sound2"

smile_o.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×