Trigger to Loop Music?

Status
Not open for further replies.
Level 4
Joined
Dec 11, 2007
Messages
53
Hey, having some trouble with this, im in need of a way to loop one piece of custom music i have while ingame (eg - keep is playing over and over until i stop it with a different trigger)

I have tried using this current trigger:

Sound - Clear Music List
Sound - Stop Music Immediatly
Sound - Set Music to 100%
Sound - Set volume of (my music) to 100%
Sound - Play (my music)

I have ticked the loop button in the sound editor, but it has had no effect ingame, any help would be greatly appreciated!
 
Time Elapsed 0.00 seconds
Play X music
Wait (duration of X music)
Run This trigger

There is a way to make music loop but this one but I forgot how to
 
Have tried, didnt work ;(

Goddamn it why does everyone else not have this problem but i do ;<
 
You need 2 triggers if i remember right:
  • Events
    • Time - Time elapsed is equal to 0.1 seconds
  • Conditions
  • Action
    • Trigger - Run *the other trigger*
    • Music - stop play the currently music theme
And:
  • Events
  • Conditions
  • Actions
    • Music - Play your music
    • Wait - *the length of your music*
    • Trigger - Run this trigger
This worked for me when i had music in one of my maps.
 
Last edited:
there is no need for 2 triggers, easily done with 1:
  • Trigger
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Sound - Play babmersMusic <gen>
      • Custom script: call TriggerSleepAction ( 60.00)
      • Custom script: call RunTrigger ( GetTriggeringTrigger())
 
Thank you all for the replies, im off to bed for now ;o. will try it all in the morning however.
 
Status
Not open for further replies.
Back
Top