# Create Planet

Grammar — Create a new state planet for playerGroup
FlagsNative | Action

Creates a new planet on the planet panel for the specified players. Use “Last Created Planet” to refer to the planet that was created.

# Arguments

  • playergroup — Player Group
  • int [ preset::PlanetState ] — State

Returns — int [ planet ]

native int PlanetCreate(
	playergroup inPlayerGroup,
	int inState,
);

Category: Story / Planet Panel / Planets

# Examples

# campaigns/libertystory.sc2campaign

CampaignLib.galaxy

// L6329
PlanetCreate(PlayerGroupAll(), c_planetStateActive)

# campaigns/voidstory.sc2campaign

VoidCampaignUILib.galaxy

// L1700
PlanetCreate(PlayerGroupAll(), c_planetStateHidden)