# Set Portrait Camera
Grammar — Set Portrait camera to Camera
Flags —Native
|Action
Sets the portrait camera using string values.
# Arguments
int
<portrait> — Portraitstring
— Camera
Returns — void
native void PortraitSetCamera(int p, string cameraName);
# Related
Category: Portrait / Advanced
- Destroy All Portraits —
void
— PortraitDestroyAll - Destroy Portrait —
void
— PortraitDestroy - Play Portrait Animation —
void
— libNtve_gf_PortraitSetAnim - Set Portrait Camera —
void
— PortraitSetCamera - Set Portrait Border Texture —
void
— PortraitSetBorderTexture - Set Portrait Light —
void
— PortraitSetLight - Set Portrait Model —
void
— PortraitSetModel - Set Portrait Model And Play Animation —
void
— PortraitSetModelAnim - Set Portrait Position —
void
— PortraitSetPosition - Set Portrait Size —
void
— PortraitSetSize - Set Portrait Transition Model —
void
— PortraitSetTransitionModel - Set Portrait Mouse Target —
void
— PortraitSetMouseTarget - Set Portrait Channel —
void
— PortraitSetChannel - Set Portrait Render Type —
void
— PortraitSetRenderType - Mute/Unmute Portrait —
void
— PortraitSetMuted - Pause/Unpause Portrait —
void
— PortraitSetPaused - Set Portrait Tint Color —
void
— PortraitSetTintColor - Set Portrait Team Color —
void
— PortraitSetTeamColor - Set Portrait Actor —
void
— PortraitSetActor - Turn Portrait Border On/Off —
void
— PortraitSetBorderVisible - Turn Portrait Background On/Off —
void
— PortraitSetBackgroundVisible - Turn Portrait Fullscreen On/Off —
void
— PortraitSetFullscreen - Turn Portrait Offscreen On/Off —
void
— PortraitSetOffscreen - Turn Portrait Transition On/Off —
void
— PortraitUseTransition - Force Portrait Transition On/Off —
void
— PortraitForceTransition - Clear Portrait Animation —
void
— libNtve_gf_ClearPortraitAnimation - Wait For Portrait To Load —
void
— PortraitWaitForLoad
# Examples
campaigns/liberty.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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);