OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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.
-
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
-
hehe didnÂ't ask for music, but works fine with sounds also.
thx
-
i use this one. seems a lot simpler!
#loop
playSound <sound title>
goto "loop"
it works too cuz ive used it b4
-
Sure Captain Winters, this will work as well, but it will be looping forever which i think u dont really want to, cheers ;)