# 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.sc2campaign

CampaignLib.galaxy

// L6398
PlanetSetContactModelLink(PlanetLastCreated(), "HansonDistressPortrait")
// L6401
PlanetSetContactModelLink(PlanetLastCreated(), libCamp_gf_ContactPortraitModel(libCamp_gf_MissionContact(lv_mission)))

# campaigns/voidstory.sc2campaign

VoidCampaignUILib.galaxy

// L1714
PlanetSetContactModelLink(PlanetLastCreated(), libVoiC_gf_PC_CampaignMapContactPortrait(lp_mission))