Playing a sound to a group of players

Genyuumaru

New Member
Reaction score
15
I want to use the GetLocalPlayer function, but almost all guides are stupid (very sorry) and tell you everything except the things you realy need to know ^^

I want to play a sound for a group of players.

Will this work?

Code:
Pick every player in "Group A" and do (Multiple Actions)
  custom script: if GetLocalPlayer() == GetEnumPlayer() then do
  Sound - Play asd.mp3
  custom script: endif

Also - If I make actions after the endif, will they be made only for 1 player or for everyone like they normaly do?
 

UndeadDragon

Super Moderator
Reaction score
447
I am not sure if sounds can be played to specific players. It might be possible though. Here is a tutorial on GetLocalPlayer() which may contain the answers.
 

Genyuumaru

New Member
Reaction score
15
I already looked at it. It's jass only and doesn't have a word about sounds or GUI. In the first post I was a bit refering to this guide ^^

Still waiting for my questions to be answered...
 

saw792

Is known to say things. That is all.
Reaction score
280
The endif ends the if statement... so no, actions after that will take no notice of your GetLocalPlayer() condition. As far as whether it works or not... have you tried it?
 

Sirroelivan

Gunnerkrigg Court
Reaction score
95
There is a way, I found it in a post while searching it for my stronghold map. Don't know the post anymore, but if you use search, you'll find something that might be of use.
 
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