• 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.

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?
 
Level 17
Joined
Feb 11, 2011
Messages
1,860
  • 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.
Top