# Destroy All Planets

Grammar — Destroy all planets for playerGroup
FlagsNative | Action

Removes all planets from the planet panel for the specified players.

# Arguments

  • playergroup — PlayerGroup

Returns — void

native void PlanetDestroyAll(playergroup inPlayerGroup);

Category: Story / Planet Panel / Planets

# Examples

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

    // Implementation
    PlanetClearSelected(PlayerGroupAll());
    PlanetDestroyAll(PlayerGroupAll());
    gv_planetPanel_Created = false;
    gv_planetPanel_PlanetCount = 0;

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

    // Implementation
    PlanetClearSelected(PlayerGroupAll());
    PlanetDestroyAll(PlayerGroupAll());
    gv_planetPanel_Created = false;
    gv_planetPanel_PlanetCount = 0;

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:1741

    ConversationDataStop();
    TransmissionClearAll();
    PlanetDestroyAll(PlayerGroupAll());
    UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypePlanetPanel, false);
}