OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: CiA Blaschoiw on 01 Nov 2002, 05:13:38

Title: Regular sound loop
Post by: CiA Blaschoiw on 01 Nov 2002, 05:13:38
Hi !

I know i used this once but i forgot how to do it. How can I make a sound loop for 5 or more rounds. I know it is damn easy, but I have forgotten it  ???
Already checked tutÂ's on that, but no trace.
Title: Re:Regular sound loop
Post by: Earl on 01 Nov 2002, 15:37:34
Sure, here is a simple script call it whatever u want

_i = 0;
#loop
_i = _i + 1
playmusic "name of ur song"
~70 - the length of the song
? (_i <= 5): goto "end"
goto "loop"

#end
ForceEnd - or something like that
Title: Re:Regular sound loop
Post by: CiA Blaschoiw on 04 Nov 2002, 05:00:50
hehe didnÂ't ask for music, but works fine with sounds also.
thx
Title: Re:Regular sound loop
Post by: Captain Winters on 06 Nov 2002, 22:58:55
i use this one. seems a lot simpler!

#loop
playSound <sound title>
goto "loop"


it works too cuz ive used it b4
Title: Re:Regular sound loop
Post by: Navy_Seals on 06 Nov 2002, 23:48:43
Sure Captain Winters, this will work as well, but it will be looping forever which i think u dont really want to, cheers ;)