# Game Portrait
Grammar — Game portrait
Flags —Native
|Function
Returns the game portrait.
Returns — int
<portrait>
native int PortraitGetGame();
# Related
Category: Portrait / Useful Portraits
- Cinematic Portrait —
int
<portrait> — libNtve_gf_CinematicPortrait - Hide All Cinematic Portraits —
void
— libNtve_gf_HideAllCinematicPortraits - Fullscreen Portrait —
int
<portrait> — libNtve_gf_FullscreenPortrait - Game Portrait —
int
<portrait> — PortraitGetGame - Planet Panel Portrait —
int
<portrait> — PortraitGetPlanetPanel - Dialog Item Portrait —
int
<portrait> — PortraitGetTriggerControl
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:3617
void gf_PerformFarewellLine (unit lp_speaker, string lp_line, string lp_beforeAnim, string lp_afterAnim, bool lp_waitOption) {
// Implementation
TransmissionSend(PlayerGroupAll(), TransmissionSourceFromUnit(lp_speaker, false, false, "Talk"), PortraitGetGame(), "Talk", SoundLink(lp_line, c_soundIndexAny), null, null, 0.0, c_transmissionDurationAdd, lp_waitOption);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:3627
gf_SetAllSoundChannelVolumesStoryMode(libNtve_ge_VolumeChannelMode_Speech);
TransmissionSend(PlayerGroupAll(), TransmissionSourceFromUnit(lp_speaker, false, false, "Talk"), PortraitGetGame(), "Talk", SoundLink(lp_line, c_soundIndexAny), null, null, 0.0, c_transmissionDurationAdd, true);
gf_SetAllSoundChannelVolumesStoryMode(libNtve_ge_VolumeChannelMode_Game);
Wait(0.05, c_timeGame);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:3617
void gf_PerformFarewellLine (unit lp_speaker, string lp_line, string lp_beforeAnim, string lp_afterAnim, bool lp_waitOption) {
// Implementation
TransmissionSend(PlayerGroupAll(), TransmissionSourceFromUnit(lp_speaker, false, false, "Talk"), PortraitGetGame(), "Talk", SoundLink(lp_line, c_soundIndexAny), null, null, 0.0, c_transmissionDurationAdd, lp_waitOption);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:3627
gf_SetAllSoundChannelVolumesStoryMode(libNtve_ge_VolumeChannelMode_Speech);
TransmissionSend(PlayerGroupAll(), TransmissionSourceFromUnit(lp_speaker, false, false, "Talk"), PortraitGetGame(), "Talk", SoundLink(lp_line, c_soundIndexAny), null, null, 0.0, c_transmissionDurationAdd, true);
gf_SetAllSoundChannelVolumesStoryMode(libNtve_ge_VolumeChannelMode_Game);
Wait(0.05, c_timeGame);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:16028
if (((libGame_gv_players[UnitGetOwner(lv_cargoUnit)].lv_activeVehicle != null) && (UnitGetType(libGame_gv_players[UnitGetOwner(lv_cargoUnit)].lv_heroUnit) == "HeroAbathur"))) {
TransmissionSendForPlayerSelect(PlayerGroupSingle(UnitGetOwner(lv_cargoUnit)), TransmissionSourceFromUnit(libGame_gv_players[UnitGetOwner(lv_cargoUnit)].lv_activeVehicle, false, true, ""), PortraitGetGame(), "", "Stand", null, StringExternal("Param/Value/lib_GDHL_4FE2EF61"), StringToText(""), 60.0, c_transmissionDurationAdd, false, c_maxPlayers, false);
libGDHL_gv_medivacTransmissionPortraitOverride[UnitGetOwner(lv_cargoUnit)] = TransmissionLastSent();
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:16032
}
else {
TransmissionSendForPlayerSelect(PlayerGroupSingle(UnitGetOwner(lv_cargoUnit)), TransmissionSourceFromUnit(libGame_gv_players[UnitGetOwner(lv_cargoUnit)].lv_heroUnit, false, true, ""), PortraitGetGame(), "", "Stand", null, StringExternal("Param/Value/lib_GDHL_8F93019A"), StringToText(""), 60.0, c_transmissionDurationAdd, false, c_maxPlayers, false);
libGDHL_gv_medivacTransmissionPortraitOverride[UnitGetOwner(lv_cargoUnit)] = TransmissionLastSent();
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:19144
UnitBehaviorRemove(libGDHL_gv_rexxarMishaUnit[lv_rexxarPlayer], "RexxarMishaFocussedOnPoint", 1);
UnitBehaviorAddPlayer(libGDHL_gv_rexxarMishaUnit[lv_rexxarPlayer], "RexxarMishaFocussedOnUnit", lv_rexxarPlayer, 1);
TransmissionSendForPlayerSelect(PlayerGroupSingle(lv_rexxarPlayer), TransmissionSourceFromUnit(libGame_gv_players[lv_rexxarPlayer].lv_heroUnit, false, true, ""), PortraitGetGame(), "", "Talk", SoundLink("RexxarBase_Misha_FocusUnit", c_soundIndexAny), StringToText(""), StringToText(""), 0.0, c_transmissionDurationAdd, false, lv_rexxarPlayer, false);
}
else {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:19160
UnitBehaviorRemove(libGDHL_gv_rexxarMishaUnit[lv_rexxarPlayer], "RexxarMishaFocussedOnUnit", 1);
UnitBehaviorAddPlayer(libGDHL_gv_rexxarMishaUnit[lv_rexxarPlayer], "RexxarMishaFocussedOnPoint", lv_rexxarPlayer, 1);
TransmissionSendForPlayer(PlayerGroupSingle(lv_rexxarPlayer), TransmissionSourceFromUnit(libGame_gv_players[lv_rexxarPlayer].lv_heroUnit, false, true, ""), PortraitGetGame(), "", "Talk", SoundLink("RexxarBase_Misha_FocusPoint", c_soundIndexAny), StringToText(""), StringToText(""), 0.0, c_transmissionDurationAdd, false, lv_rexxarPlayer);
}
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:19171
UnitBehaviorRemove(libGDHL_gv_rexxarMishaUnit[lv_rexxarPlayer], "RexxarMishaFocussedOnUnit", 1);
UnitBehaviorAddPlayer(libGDHL_gv_rexxarMishaUnit[lv_rexxarPlayer], "RexxarMishaFocussedOnPoint", lv_rexxarPlayer, 1);
TransmissionSendForPlayer(PlayerGroupSingle(lv_rexxarPlayer), TransmissionSourceFromUnit(libGame_gv_players[lv_rexxarPlayer].lv_heroUnit, false, true, ""), PortraitGetGame(), "", "Talk", SoundLink("RexxarBase_Misha_FocusPoint", c_soundIndexAny), StringToText(""), StringToText(""), 0.0, c_transmissionDurationAdd, false, lv_rexxarPlayer);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:19180
UnitBehaviorRemove(libGDHL_gv_rexxarMishaUnit[lv_rexxarPlayer], "RexxarMishaFocussedOnUnit", 1);
UnitBehaviorAddPlayer(libGDHL_gv_rexxarMishaUnit[lv_rexxarPlayer], "RexxarMishaFocussedOnPoint", lv_rexxarPlayer, 1);
TransmissionSendForPlayer(PlayerGroupSingle(lv_rexxarPlayer), TransmissionSourceFromUnit(libGame_gv_players[lv_rexxarPlayer].lv_heroUnit, false, true, ""), PortraitGetGame(), "", "Talk", SoundLink("RexxarBase_Misha_FocusPoint", c_soundIndexAny), StringToText(""), StringToText(""), 0.0, c_transmissionDurationAdd, false, lv_rexxarPlayer);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/HeroesLib.galaxy:3573
if ((lp_keepPortraitVisible != libCore_ge_TransmissionPortraitOptioins_DontShowPortrait) && ((lp_model != null) || ((lp_model == null) && (SoundPortraitModel(lp_sound) != null)) || ((lp_isPlaceHolder == true) && (lp_unit != null)))) {
if ((libNtve_gf_PlayerInCinematicMode(1) == false) && (libNtve_gf_PlayerInStoryMode(1) == false)) {
lv_portrait = PortraitGetGame();
}
else {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/HeroesLib.galaxy:3710
Wait(0.75, c_timeReal);
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.stormmod — base.stormdata/TriggerLibs/HeroesLib.galaxy:3721
libCore_gv_zS_SendTransmissionCampaignSpeaker = null;
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.stormmod — base.stormdata/TriggerLibs/HeroesLib.galaxy:3773
if ((lp_keepPortraitVisible != libCore_ge_TransmissionPortraitOptioins_DontShowPortrait) && ((lp_model != null) || ((lp_model == null) && (SoundPortraitModel(lp_sound) != null)) || ((lp_isPlaceHolder == true) && (lp_unit != null)))) {
if ((libNtve_gf_PlayerInCinematicMode(1) == false) && (libNtve_gf_PlayerInStoryMode(1) == false)) {
lv_portrait = PortraitGetGame();
}
else {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/HeroesLib.galaxy:3914
Wait(0.75, c_timeReal);
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.stormmod — base.stormdata/TriggerLibs/HeroesLib.galaxy:3925
libCore_gv_zS_SendTransmissionCampaignSpeaker = null;
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);