# Create Planet
Grammar — Create a new state planet for playerGroup
Flags —Native
|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 Groupint
[ preset::PlanetState ] — State
Returns — int
[ planet ]
native int PlanetCreate(
playergroup inPlayerGroup,
int inState,
);
# Related
Category: Story / Planet Panel / Planets
- [F] —
void
— Destroy All Planets — ( PlanetDestroyAll ) - [F] —
void
— Destroy Planet — ( PlanetDestroy ) - [F] —
int
[ planet ] — Create Planet — ( PlanetCreate ) - [F] —
int
[ planet ] — Last Created Planet — ( PlanetLastCreated )
# Examples
# campaigns/libertystory.sc2campaign
// L6329
PlanetCreate(PlayerGroupAll(), c_planetStateActive)
# campaigns/voidstory.sc2campaign
// L1700
PlanetCreate(PlayerGroupAll(), c_planetStateHidden)