• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Using Locals Quesition

Status
Not open for further replies.
Level 16
Joined
Mar 27, 2011
Messages
1,348
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