• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Play different music for different player

Status
Not open for further replies.
Level 1
Joined
Jan 6, 2012
Messages
2
I want to set a trigger which looks like,
A player1 unit entered a region, Play music1 for the owner(player1) of the entering unit
2.Then a player2's unit entered a different region and play music2 for the owner(player2) of the entering unit

I was hoping a trigger like "Action - Play Music for Player 1"
What i found was only "Action - Play Music"

Is there a trigger can set this thingy?
 
  • Trigger
    • Events
      • Unit - A unit enters (Current camera bounds)
    • Conditions
      • (Triggering player) Equal to Player 1 (Red)
    • Actions
      • Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
      • -------- ---------- --------
      • -------- Be careful what you put in here. --------
      • -------- Putting the wrong things will cause a desync in multiplayer games. --------
      • -------- ---------- --------
      • Sound - Play Music
      • Custom script: endif
 
Status
Not open for further replies.
Back
Top