Home   Help Search Login Register  

Author Topic: Looping Sounds  (Read 414 times)

0 Members and 1 Guest are viewing this topic.

PoZ

  • Guest
Looping Sounds
« on: 04 May 2003, 12:37:44 »
I need a little help. I have a mission with my own sounds and music, but is there any way I can loop the sounds?? Plz help :)

Offline Wildebeest

  • Contributing Member
  • **
  • The time the wildebeest ruled the Earth.
Re:Looping Sounds
« Reply #1 on: 04 May 2003, 12:47:45 »
The only way I know how to loop a sound is by using a script.  Have the script play the sound, then delay for a length of time equal to the length of your sound effect, then have the script loop back and play the sound again.
 
Below is a copy of one of my scripts, generalized for your purposes, that should accomplish what you want.
 
#loop  
 
; Play the appropriate sound effect.
 
playSound "MySound"
 
; Delay for approximately the length of the sound.
 
~5 ; Change this to the length of your sound effect
 
goto "loop"

Hope that helps
« Last Edit: 05 May 2003, 08:33:03 by Wildebeest »
Weeee...

PoZ

  • Guest
Re:Looping Sounds
« Reply #2 on: 04 May 2003, 12:49:51 »
Thx!

Offline Wildebeest

  • Contributing Member
  • **
  • The time the wildebeest ruled the Earth.
Re:Looping Sounds
« Reply #3 on: 04 May 2003, 13:05:29 »
np mate :)
Weeee...