Hi, is it posible to play sounds to specific owner of specific unit players?
For example: Play sound to player: Owner of (ExampleUnit).
Something like that.
I usually play sounds to players using the "if GetLocalPlayer() == Player(3) then" custom script but this obviously dosnt detect which player owns this specific unit.
I could do it with conditions to detect which player owns this unit but I use lots of sounds and it will be a hell of a task to make this all for 12 players.
EDIT: SOLVED! All I had to do was set a variable to owning player then play the sound using a custom script like before.
For example: Play sound to player: Owner of (ExampleUnit).
Something like that.
I usually play sounds to players using the "if GetLocalPlayer() == Player(3) then" custom script but this obviously dosnt detect which player owns this specific unit.
I could do it with conditions to detect which player owns this unit but I use lots of sounds and it will be a hell of a task to make this all for 12 players.
EDIT: SOLVED! All I had to do was set a variable to owning player then play the sound using a custom script like before.
Last edited: