# Set Portrait Model

Grammar — Set Portrait model to Model (wait until loaded)
FlagsNative | Action

Sets the model for a portrait.

# Arguments

  • int<portrait> — Portrait
  • string<gamelink::Model> — Model
  • bool<preset::Trigger_Wait_Option> — Wait For Load

Returns — void

native void PortraitSetModel(
	int p,
	string modelLink,
	bool waitUntilLoaded,
);

Category: Portrait / Advanced

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:10524

    }

    PortraitSetModel(gv_zPlanetPanel_PortraitPlanet, libCamp_gf_PlanetModel(libCamp_gf_MissionPlanet(gv_zPlanetPanel_Mission)), true);
    PortraitSetCamera(gv_zPlanetPanel_PortraitPlanet, "Star2 BattleNetGlue");
    libNtve_gf_SetDialogItemText(gv_zPlanetPanel_LabelMissionInfo, (StringExternal("Param/Value/FB0492C5") + libCamp_gf_MissionNameInUpperCase(gv_zPlanetPanel_Mission) + StringExternal("Param/Value/1D4E33C9") + libCamp_gf_MissionObjectivesText(gv_zPlanetPanel_Mission) + StringExternal("Param/Value/11D685B7") + libCamp_gf_PlanetMissionResearchOpportunitiesText(gv_zPlanetPanel_Mission, StringExternal("Param/Value/491BD4D7"), StringExternal("Param/Value/C954C6A0"))), PlayerGroupAll());

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:25064

    lv_mission = libCamp_gf_PlanetMission(gv_planetPanel_CurrentSelection);
    if ((lv_mission == libCamp_ge_MapID_MapTHanson01)) {
        PortraitSetModel(PortraitGetPlanetPanel(), "HansonDistressPortrait", true);
    }
    else {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:25067

    }
    else {
        PortraitSetModel(PortraitGetPlanetPanel(), libCamp_gf_ContactPortraitModel(libCamp_gf_MissionContact(libCamp_gf_PlanetMission(gv_planetPanel_CurrentSelection))), true);
    }
    if ((gf_PlanetPanelPlanetPitched(gf_PlanetPanelPlanetFromPlanetID(gv_planetPanel_CurrentSelection)) == true)) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:31147

    CameraApplyInfo(1, CameraInfoFromId(471), 0.0, -1, 10, true);
    libNtve_gf_SendTransmissionSimple(TransmissionSourceFromUnit(gf_ActorUnit(ge_ActorID_ActorRaynor), false, false, "Talk"), c_invalidPortraitId, SoundLink("TTosh03ABriefingRaynor00004", 0), 0.0, c_transmissionDurationAdd, true);
    PortraitSetModel(libNtve_gf_FullscreenPortrait(), libCamp_gf_ContactPortraitModel(libCamp_ge_ContactID_ContactTosh), true);
    PortraitSetCamera(libNtve_gf_FullscreenPortrait(), "CameraWide");
    PortraitSetVisible(libNtve_gf_FullscreenPortrait(), PlayerGroupAll(), true, false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:34094

    Wait(0.5, c_timeReal);
    libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), gv_aBChoiceTTosh03PortraitToshLeft, SoundLink("ScriptedScenesBridgeTosh00021", 0), 0.0, c_transmissionDurationAdd, true);
    PortraitSetModel(libNtve_gf_FullscreenPortrait(), libCamp_gf_ContactPortraitModel(libCamp_ge_ContactID_ContactNova), true);
    PortraitSetCamera(libNtve_gf_FullscreenPortrait(), "CameraWide");
    PortraitSetVisible(libNtve_gf_FullscreenPortrait(), PlayerGroupAll(), true, false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:34099

    UISetWorldVisible(PlayerGroupAll(), false);
    libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_FullscreenPortrait(), SoundLink("ScriptedScenesBridgeNova00033", 0), 0.0, c_transmissionDurationAdd, true);
    PortraitSetModel(libNtve_gf_FullscreenPortrait(), libCamp_gf_ContactPortraitModel(libCamp_ge_ContactID_ContactTosh), true);
    PortraitSetCamera(libNtve_gf_FullscreenPortrait(), "CameraWide");
    libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_FullscreenPortrait(), SoundLink("ScriptedScenesBridgeTosh00044", 0), 0.0, c_transmissionDurationAdd, true);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:34102

    PortraitSetCamera(libNtve_gf_FullscreenPortrait(), "CameraWide");
    libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_FullscreenPortrait(), SoundLink("ScriptedScenesBridgeTosh00044", 0), 0.0, c_transmissionDurationAdd, true);
    PortraitSetModel(libNtve_gf_FullscreenPortrait(), libCamp_gf_ContactPortraitModel(libCamp_ge_ContactID_ContactNova), true);
    PortraitSetCamera(libNtve_gf_FullscreenPortrait(), "CameraWide");
    libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_FullscreenPortrait(), SoundLink("ScriptedScenesBridgeNova00034", 0), 0.0, c_transmissionDurationAdd, true);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:34105

    PortraitSetCamera(libNtve_gf_FullscreenPortrait(), "CameraWide");
    libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_FullscreenPortrait(), SoundLink("ScriptedScenesBridgeNova00034", 0), 0.0, c_transmissionDurationAdd, true);
    PortraitSetModel(libNtve_gf_FullscreenPortrait(), libCamp_gf_ContactPortraitModel(libCamp_ge_ContactID_ContactNova), true);
    PortraitSetCamera(libNtve_gf_FullscreenPortrait(), "CameraWide");
    libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_FullscreenPortrait(), SoundLink("ScriptedScenesBridgeNova00045", 0), 0.0, c_transmissionDurationAdd, true);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:34108

    PortraitSetCamera(libNtve_gf_FullscreenPortrait(), "CameraWide");
    libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_FullscreenPortrait(), SoundLink("ScriptedScenesBridgeNova00045", 0), 0.0, c_transmissionDurationAdd, true);
    PortraitSetModel(libNtve_gf_FullscreenPortrait(), libCamp_gf_ContactPortraitModel(libCamp_ge_ContactID_ContactTosh), true);
    PortraitSetModel(libNtve_gf_FullscreenPortrait(), libCamp_gf_ContactPortraitModel(libCamp_ge_ContactID_ContactTosh), true);
    PortraitSetCamera(libNtve_gf_FullscreenPortrait(), "CameraWide");

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:34109

    libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_FullscreenPortrait(), SoundLink("ScriptedScenesBridgeNova00045", 0), 0.0, c_transmissionDurationAdd, true);
    PortraitSetModel(libNtve_gf_FullscreenPortrait(), libCamp_gf_ContactPortraitModel(libCamp_ge_ContactID_ContactTosh), true);
    PortraitSetModel(libNtve_gf_FullscreenPortrait(), libCamp_gf_ContactPortraitModel(libCamp_ge_ContactID_ContactTosh), true);
    PortraitSetCamera(libNtve_gf_FullscreenPortrait(), "CameraWide");
    libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_FullscreenPortrait(), SoundLink("ScriptedScenesBridgeTosh00046", 0), 0.0, c_transmissionDurationAdd, true);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:666

    DialogSetVisible(gv_tutorialDialog, PlayerGroupAll(), false);
    libNtve_gf_RemoveDeathModelsinRegion(RegionPlayableMap());
    PortraitSetModel(libNtve_gf_CinematicPortrait(4), "AdjutantPortrait_L", false);
    VisRevealerDestroy(gv_tutorial_Visibility);
    Wait(0.1, c_timeGame);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:1206

    gf_IfConditionThenFormatButton(gv_tutorialComplete_Production, gv_mainButton07_Production, StringExternal("Param/Value/7F8F27D2"));
    gf_IfConditionThenFormatButton(gv_tutorialComplete_Supply, gv_mainButton08_Supply, StringExternal("Param/Value/0D7903CE"));
    PortraitSetModel(gv_cinematicWindow, "AdjutantPortrait_L", false);
    PortraitSetVisible(gv_cinematicWindow, PlayerGroupAll(), true, false);
    DialogSetVisible(gv_mainDialog, PlayerGroupAll(), true);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:1274

    gv_cinematicWindow = PortraitLastCreated();
    PortraitSetBorderVisible(PortraitLastCreated(), false);
    PortraitSetModel(gv_cinematicWindow, "AdjutantPortrait_L", false);
    PortraitSetVisible(gv_cinematicWindow, PlayerGroupAll(), true, false);
    libNtve_gf_CreateDialogItemLabel(gv_mainDialog, lv_itemWidth, lv_itemHeight, c_anchorTop, 88, 165, TextCase(StringExternal("Param/Value/E60F4B90"), true), Color(100,100,100), false, 2.0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:1427

    else {
    }
    PortraitSetModel(gv_cinematicWindow, "AdjutantPortrait_L", false);
    PortraitSetVisible(gv_cinematicWindow, PlayerGroupAll(), true, false);
    libLbty_gf_SetAllSoundChannelVolumesStandardTiming(1, PlayerGroupAll());

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:10524

    }

    PortraitSetModel(gv_zPlanetPanel_PortraitPlanet, libCamp_gf_PlanetModel(libCamp_gf_MissionPlanet(gv_zPlanetPanel_Mission)), true);
    PortraitSetCamera(gv_zPlanetPanel_PortraitPlanet, "Star2 BattleNetGlue");
    libNtve_gf_SetDialogItemText(gv_zPlanetPanel_LabelMissionInfo, (StringExternal("Param/Value/FB0492C5") + libCamp_gf_MissionNameInUpperCase(gv_zPlanetPanel_Mission) + StringExternal("Param/Value/1D4E33C9") + libCamp_gf_MissionObjectivesText(gv_zPlanetPanel_Mission) + StringExternal("Param/Value/11D685B7") + libCamp_gf_PlanetMissionResearchOpportunitiesText(gv_zPlanetPanel_Mission, StringExternal("Param/Value/491BD4D7"), StringExternal("Param/Value/C954C6A0"))), PlayerGroupAll());

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:25064

    lv_mission = libCamp_gf_PlanetMission(gv_planetPanel_CurrentSelection);
    if ((lv_mission == libCamp_ge_MapID_MapTHanson01)) {
        PortraitSetModel(PortraitGetPlanetPanel(), "HansonDistressPortrait", true);
    }
    else {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:25067

    }
    else {
        PortraitSetModel(PortraitGetPlanetPanel(), libCamp_gf_ContactPortraitModel(libCamp_gf_MissionContact(libCamp_gf_PlanetMission(gv_planetPanel_CurrentSelection))), true);
    }
    if ((gf_PlanetPanelPlanetPitched(gf_PlanetPanelPlanetFromPlanetID(gv_planetPanel_CurrentSelection)) == true)) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:31147

    CameraApplyInfo(1, CameraInfoFromId(471), 0.0, -1, 10, true);
    libNtve_gf_SendTransmissionSimple(TransmissionSourceFromUnit(gf_ActorUnit(ge_ActorID_ActorRaynor), false, false, "Talk"), c_invalidPortraitId, SoundLink("TTosh03ABriefingRaynor00004", 0), 0.0, c_transmissionDurationAdd, true);
    PortraitSetModel(libNtve_gf_FullscreenPortrait(), libCamp_gf_ContactPortraitModel(libCamp_ge_ContactID_ContactTosh), true);
    PortraitSetCamera(libNtve_gf_FullscreenPortrait(), "CameraWide");
    PortraitSetVisible(libNtve_gf_FullscreenPortrait(), PlayerGroupAll(), true, false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:34094

    Wait(0.5, c_timeReal);
    libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), gv_aBChoiceTTosh03PortraitToshLeft, SoundLink("ScriptedScenesBridgeTosh00021", 0), 0.0, c_transmissionDurationAdd, true);
    PortraitSetModel(libNtve_gf_FullscreenPortrait(), libCamp_gf_ContactPortraitModel(libCamp_ge_ContactID_ContactNova), true);
    PortraitSetCamera(libNtve_gf_FullscreenPortrait(), "CameraWide");
    PortraitSetVisible(libNtve_gf_FullscreenPortrait(), PlayerGroupAll(), true, false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:34099

    UISetWorldVisible(PlayerGroupAll(), false);
    libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_FullscreenPortrait(), SoundLink("ScriptedScenesBridgeNova00033", 0), 0.0, c_transmissionDurationAdd, true);
    PortraitSetModel(libNtve_gf_FullscreenPortrait(), libCamp_gf_ContactPortraitModel(libCamp_ge_ContactID_ContactTosh), true);
    PortraitSetCamera(libNtve_gf_FullscreenPortrait(), "CameraWide");
    libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_FullscreenPortrait(), SoundLink("ScriptedScenesBridgeTosh00044", 0), 0.0, c_transmissionDurationAdd, true);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:34102

    PortraitSetCamera(libNtve_gf_FullscreenPortrait(), "CameraWide");
    libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_FullscreenPortrait(), SoundLink("ScriptedScenesBridgeTosh00044", 0), 0.0, c_transmissionDurationAdd, true);
    PortraitSetModel(libNtve_gf_FullscreenPortrait(), libCamp_gf_ContactPortraitModel(libCamp_ge_ContactID_ContactNova), true);
    PortraitSetCamera(libNtve_gf_FullscreenPortrait(), "CameraWide");
    libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_FullscreenPortrait(), SoundLink("ScriptedScenesBridgeNova00034", 0), 0.0, c_transmissionDurationAdd, true);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:34105

    PortraitSetCamera(libNtve_gf_FullscreenPortrait(), "CameraWide");
    libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_FullscreenPortrait(), SoundLink("ScriptedScenesBridgeNova00034", 0), 0.0, c_transmissionDurationAdd, true);
    PortraitSetModel(libNtve_gf_FullscreenPortrait(), libCamp_gf_ContactPortraitModel(libCamp_ge_ContactID_ContactNova), true);
    PortraitSetCamera(libNtve_gf_FullscreenPortrait(), "CameraWide");
    libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_FullscreenPortrait(), SoundLink("ScriptedScenesBridgeNova00045", 0), 0.0, c_transmissionDurationAdd, true);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:34108

    PortraitSetCamera(libNtve_gf_FullscreenPortrait(), "CameraWide");
    libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_FullscreenPortrait(), SoundLink("ScriptedScenesBridgeNova00045", 0), 0.0, c_transmissionDurationAdd, true);
    PortraitSetModel(libNtve_gf_FullscreenPortrait(), libCamp_gf_ContactPortraitModel(libCamp_ge_ContactID_ContactTosh), true);
    PortraitSetModel(libNtve_gf_FullscreenPortrait(), libCamp_gf_ContactPortraitModel(libCamp_ge_ContactID_ContactTosh), true);
    PortraitSetCamera(libNtve_gf_FullscreenPortrait(), "CameraWide");

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:34109

    libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_FullscreenPortrait(), SoundLink("ScriptedScenesBridgeNova00045", 0), 0.0, c_transmissionDurationAdd, true);
    PortraitSetModel(libNtve_gf_FullscreenPortrait(), libCamp_gf_ContactPortraitModel(libCamp_ge_ContactID_ContactTosh), true);
    PortraitSetModel(libNtve_gf_FullscreenPortrait(), libCamp_gf_ContactPortraitModel(libCamp_ge_ContactID_ContactTosh), true);
    PortraitSetCamera(libNtve_gf_FullscreenPortrait(), "CameraWide");
    libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_FullscreenPortrait(), SoundLink("ScriptedScenesBridgeTosh00046", 0), 0.0, c_transmissionDurationAdd, true);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2mapMapScript.galaxy:666

    DialogSetVisible(gv_tutorialDialog, PlayerGroupAll(), false);
    libNtve_gf_RemoveDeathModelsinRegion(RegionPlayableMap());
    PortraitSetModel(libNtve_gf_CinematicPortrait(4), "AdjutantPortrait_L", false);
    VisRevealerDestroy(gv_tutorial_Visibility);
    Wait(0.1, c_timeGame);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2mapMapScript.galaxy:1206

    gf_IfConditionThenFormatButton(gv_tutorialComplete_Production, gv_mainButton07_Production, StringExternal("Param/Value/7F8F27D2"));
    gf_IfConditionThenFormatButton(gv_tutorialComplete_Supply, gv_mainButton08_Supply, StringExternal("Param/Value/0D7903CE"));
    PortraitSetModel(gv_cinematicWindow, "AdjutantPortrait_L", false);
    PortraitSetVisible(gv_cinematicWindow, PlayerGroupAll(), true, false);
    DialogSetVisible(gv_mainDialog, PlayerGroupAll(), true);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2mapMapScript.galaxy:1274

    gv_cinematicWindow = PortraitLastCreated();
    PortraitSetBorderVisible(PortraitLastCreated(), false);
    PortraitSetModel(gv_cinematicWindow, "AdjutantPortrait_L", false);
    PortraitSetVisible(gv_cinematicWindow, PlayerGroupAll(), true, false);
    libNtve_gf_CreateDialogItemLabel(gv_mainDialog, lv_itemWidth, lv_itemHeight, c_anchorTop, 88, 165, TextCase(StringExternal("Param/Value/E60F4B90"), true), Color(100,100,100), false, 2.0);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2mapMapScript.galaxy:1427

    else {
    }
    PortraitSetModel(gv_cinematicWindow, "AdjutantPortrait_L", false);
    PortraitSetVisible(gv_cinematicWindow, PlayerGroupAll(), true, false);
    libLbty_gf_SetAllSoundChannelVolumesStandardTiming(1, PlayerGroupAll());

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:1008

    if ((lp_localIndex != libSwaC_gv_zS_SendTransmissionCampaignIndex)) {
        if ((libSwaC_gv_zS_SendTransmissionCampaignPortrait != lp_portrait) && (lp_portrait != c_invalidPortraitId) && (lp_keepPortraitVisible == libSwaC_ge_CampaignTransmissionPortraitOptioins_HidePortraitAfter)) {
            PortraitSetModel(lp_portrait, "StaticPortrait", false);
            PortraitSetVisible(lp_portrait, PlayerGroupAll(), false, false);
            libSwaC_gf_ZS_UpdateErrorPanelMaskSingle();

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:1020

    TriggerExecute(libSwaC_gt_ZS_SendTransmissionCampaignTick, true, false);
    if ((lp_keepPortraitVisible == libSwaC_ge_CampaignTransmissionPortraitOptioins_HidePortraitAfter) && (lp_portrait != c_invalidPortraitId)) {
        PortraitSetModel(lp_portrait, "StaticPortrait", false);
        PortraitSetVisible(lp_portrait, PlayerGroupAll(), false, false);
    }

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:1510

    }
    else {
        PortraitSetModel(libSwaC_gv_zS_PlanetPortrait, lp_model, true);
    }
    autoE476883A_val = lp_model;

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:7417

        DialogControlHookup(libSwaC_gv_zS_ArmyCustomEggRoomPanel, c_triggerControlTypePortrait, "EvolutionButtonPortrait");
        libSwaC_gv_zS_ArmyCustomEggRoomEvolutionButtonHighlight = DialogControlLastCreated();
        PortraitSetModel(PortraitGetTriggerControl(libSwaC_gv_zS_ArmyCustomEggRoomEvolutionButtonHighlight), "EvolutionButtonHighlight", true);
        DialogSetVisible(libSwaC_gv_zS_ArmyCustomEggRoomDialog, PlayerGroupAll(), true);
    }

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:9498

        autoC0F182A6_ai = autoC0F182A6_ai + 1;
    }
    PortraitSetModel(PortraitGetTriggerControl(libSwaC_gv_zS_ArmyCustomMissionContactPortrait), "EvolutionMasterPortrait3D", true);
    PortraitSetActor(PortraitGetTriggerControl(libSwaC_gv_zS_ArmyCustomMissionContactPortrait), "EvolutionMasterPortrait3D");
    DialogControlSetVisible(libSwaC_gv_zS_ArmyCustomMissionContactPortrait, PlayerGroupAll(), true);

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:1147

            libNtve_gf_SetDialogItemText(lib281DEC45_gv_zSS_UITravelPlanetSelectedName[lv_index], libSwaC_gf_StoryPlanetName(lib281DEC45_gv_zSS_UITravelLocationLinks[IntLoopCurrent()]), PlayerGroupAll());
            libNtve_gf_SetDialogItemTooltip(lib281DEC45_gv_zSS_UITravelPlanetSelectedBorder[lv_index], StringExternal(lib281DEC45_gf_ZSS_UITravelLocationProperty(IntLoopCurrent(), "PlanetToolTip")), PlayerGroupAll());
            PortraitSetModel(PortraitGetTriggerControl(lib281DEC45_gv_zSS_UITravelPlanetPortrait[lv_index]), (lib281DEC45_gf_ZSS_UITravelLocationProperty(IntLoopCurrent(), "PlanetModel")), true);
        }
        else {

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:1438

    DialogControlSetVisible(lib281DEC45_gv_zSS_UITravelUnitRewardFrame, PlayerGroupAll(), false);
    if ((lib281DEC45_gv_zSS_UITravelUseTerranPitch == true)) {
        PortraitSetModel(PortraitGetTriggerControl(lib281DEC45_gv_zSS_UITravelContactPortrait), "AdjutantPortrait_L3D", false);
    }
    else {

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:1441

    }
    else {
        PortraitSetModel(PortraitGetTriggerControl(lib281DEC45_gv_zSS_UITravelContactPortrait), (lib281DEC45_gf_ZSS_UITravelLocationProperty(lp_planetIndex, "ContactModel")), false);
        if ((lib281DEC45_gf_ZSS_UITravelLocationProperty(lp_planetIndex, "ContactActor") == "")) {
            PortraitSetActor(PortraitGetTriggerControl(lib281DEC45_gv_zSS_UITravelContactPortrait), "PortraitActor");

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:1455

    }
    else {
        PortraitSetModel(PortraitGetTriggerControl(lib281DEC45_gv_zSS_UITravelBGPortrait), (lib281DEC45_gf_ZSS_UITravelLocationProperty(lp_planetIndex, "BackgroundModel")), false);
    }
    lv_unitFrameIndex = 0;

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:1685

void lib281DEC45_gf_ZSS_UIMissionUpdatePortrait () {
    // Implementation
    PortraitSetModel(PortraitGetTriggerControl(lib281DEC45_gv_zSS_MissionContactPortrait), (lib281DEC45_gf_ZSS_UIMissionProperty("ContactModelLink")), true);
    PortraitWaitForLoad(PortraitGetTriggerControl(lib281DEC45_gv_zSS_MissionContactPortrait));
}

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:2016

    }
    else {
        PortraitSetModel(libVCMI_gv_pM_PlanetPortrait, lp_model, true);
    }
    autoC182DE42_val = lp_model;

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:2929

    if ((lp_localIndex != libVCMI_gv_pM_SendTransmissionCampaignIndex)) {
        if ((libVCMI_gv_pM_SendTransmissionCampaignPortrait != lp_portrait) && (lp_portrait != c_invalidPortraitId) && (lp_keepPortraitVisible == libVCMI_ge_MissionTransmissionPortraitOptioins_HidePortraitAfter)) {
            PortraitSetModel(lp_portrait, "StaticPortrait", false);
            PortraitSetVisible(lp_portrait, PlayerGroupAll(), false, false);
        }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:2948

    TriggerExecute(libVCMI_gt_PM_SendTransmissionCampaignTick, true, false);
    if ((lp_keepPortraitVisible == libVCMI_ge_MissionTransmissionPortraitOptioins_HidePortraitAfter) && (lp_portrait != c_invalidPortraitId)) {
        PortraitSetModel(lp_portrait, "StaticPortrait", false);
        PortraitSetVisible(lp_portrait, PlayerGroupAll(), false, false);
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:3711

    if ((lp_localIndex != libCore_gv_zS_SendTransmissionCampaignIndex)) {
        if ((libCore_gv_zS_SendTransmissionCampaignPortrait != lp_portrait) && (lp_portrait != c_invalidPortraitId) && (lp_keepPortraitVisible == libCore_ge_TransmissionPortraitOptioins_HidePortraitAfter) && (lp_portrait != PortraitGetGame())) {
            PortraitSetModel(lp_portrait, "MissingPortrait", false);
            PortraitSetVisible(lp_portrait, PlayerGroupAll(), false, false);
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:3722

    TriggerExecute(libCore_gt__SendTransmissionTick, true, false);
    if ((lp_keepPortraitVisible == libCore_ge_TransmissionPortraitOptioins_HidePortraitAfter) && (lp_portrait != c_invalidPortraitId) && (lp_portrait != PortraitGetGame())) {
        PortraitSetModel(lp_portrait, "MissingPortrait", false);
        PortraitSetVisible(lp_portrait, PlayerGroupAll(), false, false);
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:3915

    if ((lp_localIndex != libCore_gv_zS_SendTransmissionCampaignIndex)) {
        if ((libCore_gv_zS_SendTransmissionCampaignPortrait != lp_portrait) && (lp_portrait != c_invalidPortraitId) && (lp_keepPortraitVisible == libCore_ge_TransmissionPortraitOptioins_HidePortraitAfter) && (lp_portrait != PortraitGetGame())) {
            PortraitSetModel(lp_portrait, "MissingPortrait", false);
            PortraitSetVisible(lp_portrait, PlayerGroupSingle(lp_player), false, false);
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:3926

    TriggerExecute(libCore_gt__SendTransmissionTick, true, false);
    if ((lp_keepPortraitVisible == libCore_ge_TransmissionPortraitOptioins_HidePortraitAfter) && (lp_portrait != c_invalidPortraitId) && (lp_portrait != PortraitGetGame())) {
        PortraitSetModel(lp_portrait, "MissingPortrait", false);
        PortraitSetVisible(lp_portrait, PlayerGroupSingle(lp_player), false, false);
    }

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCMI.galaxy:2696

    }
    else {
        PortraitSetModel(libNCMI_gv_NM_PlanetPortrait, lp_model, true);
    }
    autoC182DE42_val = lp_model;

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCMI.galaxy:3142

    if ((lp_localIndex != libNCMI_gv_NM_SendTransmissionCampaignIndex)) {
        if ((libNCMI_gv_NM_SendTransmissionCampaignPortrait != lp_portrait) && (lp_portrait != c_invalidPortraitId) && (lp_keepPortraitVisible == libNCMI_ge_MissionTransmissionPortraitOptioins_HidePortraitAfter)) {
            PortraitSetModel(lp_portrait, "StaticPortrait", false);
            PortraitSetVisible(lp_portrait, PlayerGroupAll(), false, false);
        }

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCMI.galaxy:3161

    TriggerExecute(libNCMI_gt_NM_SendTransmissionCampaignTick, true, false);
    if ((lp_keepPortraitVisible == libNCMI_ge_MissionTransmissionPortraitOptioins_HidePortraitAfter) && (lp_portrait != c_invalidPortraitId)) {
        PortraitSetModel(lp_portrait, "StaticPortrait", false);
        PortraitSetVisible(lp_portrait, PlayerGroupAll(), false, false);
    }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:10855

    if ((lp_localIndex != libCOMI_gv_cM_SendTransmissionCampaignIndex)) {
        if ((libCOMI_gv_cM_SendTransmissionCampaignPortrait != lp_portrait) && (lp_portrait != c_invalidPortraitId) && (lp_keepPortraitVisible == libCOMI_ge_MissionTransmissionPortraitOptioins_HidePortraitAfter)) {
            PortraitSetModel(lp_portrait, "StaticPortrait", false);
            PortraitSetVisible(lp_portrait, PlayerGroupAll(), false, false);
        }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:10866

    TriggerExecute(libCOMI_gt_CM_SendTransmissionCampaignTick, true, false);
    if ((lp_keepPortraitVisible == libCOMI_ge_MissionTransmissionPortraitOptioins_HidePortraitAfter) && (lp_portrait != c_invalidPortraitId)) {
        PortraitSetModel(lp_portrait, "StaticPortrait", false);
        PortraitSetVisible(lp_portrait, PlayerGroupAll(), false, false);
    }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:874


            libCOUI_gv_cU_CommanderList[lv_commIndex] = lv_indexCommander;
            PortraitSetModel(PortraitGetTriggerControl(libCOUI_gv_cU_CommanderButtonPortrait[lv_commIndex]), libCOOC_gf_CC_CommanderPortraitModel(libCOUI_gv_cU_CommanderList[lv_commIndex]), false);
            if ((libCOOC_gf_CC_CommanderPortraitActor(libCOUI_gv_cU_CommanderList[lv_commIndex]) != null)) {
                PortraitSetActor(PortraitGetTriggerControl(libCOUI_gv_cU_CommanderButtonPortrait[lv_commIndex]), libCOOC_gf_CC_CommanderPortraitActor(libCOUI_gv_cU_CommanderList[lv_commIndex]));

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:5408

    }

    PortraitSetModel(PortraitGetTriggerControl(libCOUI_gv_cU_TychusSquadPortraits[lp_squadIndex]), UserDataGetModel("CoopTechTychusSquad", lp_squadInstance, "Portrait Model", 1), false);
    PortraitSetActor(PortraitGetTriggerControl(libCOUI_gv_cU_TychusSquadPortraits[lp_squadIndex]), "PortraitActor");
    libNtve_gf_SetDialogItemImage(libCOUI_gv_cU_TychusSquadPortraitsStatic[lp_squadIndex], UserDataGetImagePath("CoopTechTychusSquad", lp_squadInstance, "2D Portrait", 1), PlayerGroupAll());

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:696

    if ((lp_localIndex != libA3DDD02B_gv_pP_SendTransmissionCampaignIndex)) {
        if ((libA3DDD02B_gv_pP_SendTransmissionCampaignPortrait != lp_portrait) && (lp_portrait != c_invalidPortraitId) && (lp_keepPortraitVisible == libA3DDD02B_ge_CampaignTransmissionPortraitOptioins_HidePortraitAfter)) {
            PortraitSetModel(lp_portrait, "StaticPortrait", false);
            PortraitSetVisible(lp_portrait, PlayerGroupAll(), false, false);
            libA3DDD02B_gf_PP_UpdateErrorPanelMaskSingle();

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:708

    TriggerExecute(libA3DDD02B_gt_PP_SendTransmissionCampaignTick, true, false);
    if ((lp_keepPortraitVisible == libA3DDD02B_ge_CampaignTransmissionPortraitOptioins_HidePortraitAfter) && (lp_portrait != c_invalidPortraitId)) {
        PortraitSetModel(lp_portrait, "StaticPortrait", false);
        PortraitSetVisible(lp_portrait, PlayerGroupAll(), false, false);
    }

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:1196

    }
    else {
        PortraitSetModel(libA3DDD02B_gv_pP_PlanetPortrait, lp_model, true);
    }
    autoE476883A_val = lp_model;