Sounds - How to: Create a sound effect only for one specific player?

komapatient

New Member
Reaction score
10
How can I trigger a specific sound effect that only one player can hear...

For example, I click on a unit, and the sound file is only heard by the player who clicked (just like when you select the Goblin Merchant). Please don't tell me to manipulate the unit's sound set, I need to have this trigger driven!
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Code:
Custom script:    if(GetLocalPlayer() == GetOwningPlayer(GetTriggerUnit()) then
Custom script:    <Actions>
Custom script:    endif
I'm pretty sure you have to do that (With more in there obviously) ;
That's just a start.
 

komapatient

New Member
Reaction score
10
Code:
Custom script:    if(GetLocalPlayer() == GetOwningPlayer(GetTriggerUnit()) then
Custom script:    <Actions>
Custom script:    endif
I'm pretty sure you have to do that (With more in there obviously) ;
That's just a start.

Uh my god, I guess I have to read into JASS to solve that.. right now I just put that on my to do List... Too sad, Blizzard didn't put a GUI function into WE.. :-s
 

WolfieeifloW

WEHZ Helper
Reaction score
372
I think you just have to loop through a player group and then put that in.
You don't have to read into JASS to use that.
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Yes, it is known to do that.
If used correctly though it's perfectly legit (And makes things a lot easier) .
 

kingkingyyk3

Visitor (Welcome to the Jungle, Baby!)
Reaction score
216
If you create a variable if GetLocalPlayer block, then it will desync.
 
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