# Pick Each Player In Player Group

Grammar — Pick each player in group and do (Actions)
FlagsSubFunctions | 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)
}

Category: Player Group / Loops

# Examples

— None found —