• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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