SC2Mapster.com Wiki

PlayerGroupAll

native playergroup PlayerGroupAll();

Playergroup that contains all the players

Return value

playergroup - Playergroup that contains all the players

Examples

Example #1: Send message to everyone
// Send a message to everyone in the subtitle area
UIDisplayMessage(PlayerGroupAll(),
                 c_messageAreaSubtitle,
                 StringToText("Hello From SC2 Mapster"));
Example #2: Clear screen area
// Fill an area with a lot of blanks to remove all the messages
// currently active in that area
void UIClearScreenArea(int area) {
  int i = 0;
  while (i <= 20) {
    UIDisplayMessage(PlayerGroupAll(), area, StringToText(" "));
    i += 1;
  }
}

You must login to post a comment. Don't have an account? Register to get one!

Facts

Date created
Mar 09, 2010
Last updated
Mar 22, 2010

Author