# Set Planet Primary Objective Text

Grammar — Change the primary objective text description of planet to objectiveText
FlagsNative | Action

Sets the primary objective description for the specified planet.

# Arguments

  • int [ planet ] — Planet
  • text — ObjectiveText

Returns — void

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

Category: Story / Planet Panel / Planet Properties

# Examples

# campaigns/libertystory.sc2campaign

CampaignLib.galaxy

// L6335
PlanetSetPrimaryObjectiveText(PlanetLastCreated(), (libCamp_gf_MissionObjectivesText(lv_mission)))

# campaigns/voidstory.sc2campaign

VoidCampaignUILib.galaxy

// L1712
PlanetSetPrimaryObjectiveText(PlanetLastCreated(), StringExternal(libVCUI_gf_PU_MissionProperty("PrimaryObjectiveText")))