• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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