# Set Planet Technology Unit

Grammar — Change the technology unit link of planet to unitLink
FlagsNative | Action

Sets the unit for the tech for the specified planet.

# Arguments

  • int<planet> — Planet
  • string<gamelink::Unit> — Unit Link

Returns — void

native void PlanetSetTechnologyUnitLink(
	int inPlanetId,
	string inUnitLink,
);

Category: Story / Planet Panel / Planet Properties

# Examples

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

        PlanetSetTechnologyText(PlanetLastCreated(), libCamp_gf_StoryTechGroupDescription(lv_groupEnabled));
        PlanetSetTechnologyTooltipText(PlanetLastCreated(), libCamp_gf_StoryTechGroupTooltip(lv_groupEnabled));
        PlanetSetTechnologyUnitLink(PlanetLastCreated(), libCamp_gf_StoryTechGroupUnitType(lv_groupEnabled));
    }
    else {

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

        PlanetSetTechnologyName(PlanetLastCreated(), StringToText(""));
        PlanetSetTechnologyText(PlanetLastCreated(), StringToText(""));
        PlanetSetTechnologyUnitLink(PlanetLastCreated(), "QuestionMark");
    }