# Set Planet Contact Name

Grammar — Change the contact name of planet to contactName|ContactName
FlagsNative | Action

Sets the contact name for the specified planet.

# Arguments

  • int<planet> — Planet
  • text — Contact Name

Returns — void

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

Category: Story / Planet Panel / Planet Properties

# Examples

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


    lv_contactIndex = (libCamp_gv_tS_MissionContact[lv_missionIndex]);
    PlanetSetContactName(PlanetLastCreated(), libCamp_gv_tS_ContactName[lv_contactIndex]);
    if ((lv_mission == libCamp_ge_MapID_MapTHanson01)) {
        PlanetSetContactModelLink(PlanetLastCreated(), "HansonDistressPortrait");

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:1715

    PlanetSetBackgroundModelLink(PlanetLastCreated(), "SMX2_UI_Screens_Loading_Epilogue02");
    PlanetSetContactModelLink(PlanetLastCreated(), libVoiC_gf_PC_CampaignMapContactPortrait(lp_mission));
    PlanetSetContactName(PlanetLastCreated(), libVoiC_gf_PC_CampaignMapContactName(lp_mission));
    PlanetSetContactActorLink(PlanetLastCreated(), libVoiC_gf_PC_CampaignMapContactActor(lp_mission));
    PlanetSetTechnologyTitle(PlanetLastCreated(), StringExternal("Param/Value/lib_VCUI_899CD639"));