Home   Help Search Login Register  

Author Topic: how do you let the music repeat?  (Read 454 times)

0 Members and 1 Guest are viewing this topic.

DarkCell

  • Guest
how do you let the music repeat?
« on: 03 Aug 2003, 15:40:12 »
Can someone Tell me How I can let music Repeat for ever in the game?
or just 2 times or 4 or whatever you know what I mean   ;)
Becease I Made my own music in the Game but I dont know how I can let the music repeat a few times help me plz!!  ???

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:how do you let the music repeat?
« Reply #1 on: 04 Aug 2003, 05:03:56 »
There is no command for that. You'll have to make a small script that basically says:

Code: [Select]
#top
playmusic "mymusic"
~300
goto "top"

You would replace "300" with the length of your song (in seconds). If you wanted to only repeat a certain number of times, it would look something like this:

Code: [Select]
_count = 0
_max = 4

#top
_count = _count + 1
playmusic "mymusic"
~300
? _count < _max : goto "top"

This would make it play 4 times.
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Not all is lost.

Offline Black_Feather

  • Former Staff
  • ****
  • I'll never forget you Daisey.