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

Using Locals Quesition

Status
Not open for further replies.
Level 16
Joined
Mar 27, 2011
Messages
1,349
How do I locally play a sound to a player group?

  • Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
From snooping around, I figured out TriggeringPlayer. What do I input into
the custom script to get a player group? I don't know jass. Thanks.
 
Level 22
Joined
Sep 24, 2005
Messages
4,821
You need to use a loop for each player in a player group, I think. In jass you can also do a ForForce enumeration, I just don't know how it looks like in GUI, sorry.

pseudo-code:
Code:
loop within player group
 if player is in group { play sound }
 else { actions } // can be omitted
 
Status
Not open for further replies.
Top