# Set Planet Contact Model

Grammar — Change the contact model of planet to contactModel|Model
FlagsNative | Action

Sets the model for the contact for the specified planet.

# Arguments

  • int<planet> — Planet
  • string<gamelink::Model> — Contact Model

Returns — void

native void PlanetSetContactModelLink(
	int inPlanetId,
	string inContactModelLink,
);

Category: Story / Planet Panel / Planet Properties

# Examples

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

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

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

    }
    else {
        PlanetSetContactModelLink(PlanetLastCreated(), libCamp_gf_ContactPortraitModel(libCamp_gf_MissionContact(lv_mission)));
    }
    lv_contactTooltipConvo = "PlanetPanelTooltips|Employer_Image";

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

    PlanetSetPrimaryObjectiveText(PlanetLastCreated(), StringExternal(libVCUI_gf_PU_MissionProperty("PrimaryObjectiveText")));
    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));