# Set Portrait Camera

Grammar — Set Portrait camera to Camera
FlagsNative | Action

Sets the portrait camera using string values.

# Arguments

  • int<portrait> — Portrait
  • string — Camera

Returns — void

native void PortraitSetCamera(int p, string cameraName);

Category: Portrait / Advanced

# Examples

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


    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());
    autoF7334389_ae = gv_zPlanetPanel_DropdownDifficultyCount;

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

    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);
    UISetWorldVisible(PlayerGroupAll(), false);

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

    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);
    UISetWorldVisible(PlayerGroupAll(), false);

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

    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);
    PortraitSetModel(libNtve_gf_FullscreenPortrait(), libCamp_gf_ContactPortraitModel(libCamp_ge_ContactID_ContactNova), true);

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

    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);
    PortraitSetModel(libNtve_gf_FullscreenPortrait(), libCamp_gf_ContactPortraitModel(libCamp_ge_ContactID_ContactNova), true);

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

    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);
    PortraitSetModel(libNtve_gf_FullscreenPortrait(), libCamp_gf_ContactPortraitModel(libCamp_ge_ContactID_ContactTosh), true);

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

    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);
    UISetWorldVisible(PlayerGroupAll(), true);

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


    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());
    autoF7334389_ae = gv_zPlanetPanel_DropdownDifficultyCount;

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

    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);
    UISetWorldVisible(PlayerGroupAll(), false);

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

    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);
    UISetWorldVisible(PlayerGroupAll(), false);

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

    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);
    PortraitSetModel(libNtve_gf_FullscreenPortrait(), libCamp_gf_ContactPortraitModel(libCamp_ge_ContactID_ContactNova), true);

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

    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);
    PortraitSetModel(libNtve_gf_FullscreenPortrait(), libCamp_gf_ContactPortraitModel(libCamp_ge_ContactID_ContactNova), true);

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

    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);
    PortraitSetModel(libNtve_gf_FullscreenPortrait(), libCamp_gf_ContactPortraitModel(libCamp_ge_ContactID_ContactTosh), true);

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

    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);
    UISetWorldVisible(PlayerGroupAll(), true);