# Pick Each Player In Player Group
Grammar — Pick each player in group and do (Actions)
Flags —SubFunctions
|Action
Picks each player in the specified Player Group and runs the associated action set. The “Picked Player” function must be used to reference the iterating value inside of the loop.
# Arguments
playergroup
— Player Group
Returns — void
#AUTOVAR(g, playergroup) = #PARAM(group);
#AUTOVAR(var) = -1;
while (true) {
#AUTOVAR(var) = PlayerGroupNextPlayer(#AUTOVAR(g), #AUTOVAR(var));
if (#AUTOVAR(var) < 0) { break; }
#SUBFUNCS(actions)
}
# Related
Category: Player Group / Loops
- For Each Player In Player Group — macro
- For Each Player In Player Group Deprecated — macro
- Pick Each Player In Player Group — macro
- Pick Each Player In Player Group Deprecated — macro
- Picked Player
- Picked Player Deprecated —
int
— PlayerGroupLoopCurrentDeprecated
# Examples
— None found —