# Planet Panel Planet Selected

Grammar — Player player clicks on planet in the Planet Panel UI
FlagsNative | Event

This event fires when a player clicks on a planet on the planet panel. Use “Clicked Planet” to get the planet that was clicked.

# Arguments

  • int — Player
  • int<planet> — Planet

Returns — void

native void TriggerAddEventPlanetMissionSelected(
	trigger t,
	int player,
	int planetId,
);

# Event parameters

Category: Story / Planet Panel / Planet Panel

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:25082

void gt_PlanetPanelPlanetSelected_Init () {
    gt_PlanetPanelPlanetSelected = TriggerCreate("gt_PlanetPanelPlanetSelected_Func");
    TriggerAddEventPlanetMissionSelected(gt_PlanetPanelPlanetSelected, c_playerAny, c_invalidPlanetId);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:25082

void gt_PlanetPanelPlanetSelected_Init () {
    gt_PlanetPanelPlanetSelected = TriggerCreate("gt_PlanetPanelPlanetSelected_Func");
    TriggerAddEventPlanetMissionSelected(gt_PlanetPanelPlanetSelected, c_playerAny, c_invalidPlanetId);
}