Playing Music for a Single Player

Kenito

I Helps Most Goodly
Reaction score
42
Well, I'm working on a straightforward multiplayer RPG, and I would like to have different themes for different areas of the map. How can this be done? I've searched but haven't found anything that helps.

I tried this:

Code:
Pick every player in [player 1 (red)] and do [play music/soundhere]

Doesn't work. I also tried making regions and putting the music as an ambient sound, but that doesn't work. So how can you either:

A. Play music as an ambient sound. I believe you need to adjust some fade rates and stuff in the sound editor?

B. Play music for a specific player.

And by music, I mean music as a sound (I do that pitch-editing thing).

Many thanks if you can help me out.
 

Foresector

Member
Reaction score
16
To make this trigger work you need to do 2 things.
One, import your sound and view it in the sound editor. Right click on it and select "use as music".

Then use this code.

Code:
    Events
        Unit - A unit enters YOUR REGION <gen>
    Conditions
        (Owner of (Triggering unit)) Equal to Player 1 (Red)
    Actions
        Player Group - Pick every player in Player Group - Player 1 (Red) and do ([U]Sound - Play YOUR MUSIC[/U])

For the sounds action part , you will want to select "Play Music theme". That makes the music play once then the game music will resume, which is what you want?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top