# Set Selected Planet

Grammar — Set planet as the currently selected planet for playerGroup
FlagsNative | Action

Selects the specified planet on the planet panel for the specified players.

# Arguments

  • playergroup — PlayerGroup
  • int [ planet ] — Planet

Returns — void

native void PlanetSetSelected(
	playergroup inPlayerGroup,
	int inPlanetId,
);

Category: Story / Planet Panel / Planet Panel

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L10237
PlanetSetSelected(PlayerGroupAll(), PlanetLastCreated())
// L10255
PlanetSetSelected(PlayerGroupAll(), lv_planet)
// L10237
PlanetSetSelected(PlayerGroupAll(), PlanetLastCreated())
// L10255
PlanetSetSelected(PlayerGroupAll(), lv_planet)

# campaigns/voidstory.sc2campaign

VoidCampaignUILib.galaxy

// L1719
PlanetSetSelected(PlayerGroupAll(), PlanetLastCreated())