# Set Planet Name

Grammar — Change the name of planet to name
FlagsNative | Action

Sets the name fo the specified planet.

# Arguments

  • int<planet> — Planet
  • text — Name

Returns — void

native void PlanetSetPlanetName(
	int inPlanetId,
	text inText,
);

Category: Story / Planet Panel / Planet Properties

# Examples

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:6330

    lv_missionIndex = (lv_mission);
    PlanetCreate(PlayerGroupAll(), c_planetStateActive);
    PlanetSetPlanetName(PlanetLastCreated(), libCamp_gf_PlanetName(lp_planet));
    PlanetSetPlanetModelLink(PlanetLastCreated(), libCamp_gv_tS_PlanetButtonModel[lv_planetIndex]);
    PlanetSetBackgroundModelLink(PlanetLastCreated(), libCamp_gv_tS_PlanetModel[lv_planetIndex]);