# Pause/Unpause Portrait

Grammar — Set Portrait paused to paused
FlagsNative | Action

Pauses or unpauses the animation in the specified portrait.

# Arguments

  • int<portrait> — Portrait
  • bool — Paused

Returns — void

native void PortraitSetPaused(int p, bool isPaused);

Category: Portrait / Advanced

# Examples

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:910

        libNtve_gf_SetDialogItemToggled(gv_victoryUI_StageSelectButtons[3], false, PlayerGroupAll());
        libNtve_gf_SetDialogItemToggled(gv_victoryUI_StageSelectButtons[4], false, PlayerGroupAll());
        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), false);
        PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), Color(100.00, 100.00, 100.00));
        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), true);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:912

        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), false);
        PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), Color(100.00, 100.00, 100.00));
        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), true);
        PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), Color(40.00, 40.00, 40.00));
        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), true);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:914

        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), true);
        PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), Color(40.00, 40.00, 40.00));
        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), true);
        PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), Color(40.00, 40.00, 40.00));
        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[4]), true);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:916

        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), true);
        PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), Color(40.00, 40.00, 40.00));
        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[4]), true);
        PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[4]), Color(40.00, 40.00, 40.00));
        libNtve_gf_SetDialogItemText(gv_victoryUI_StageNumber, StringExternal("UI/TutorialStage1Number"), PlayerGroupAll());

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:948

        libNtve_gf_SetDialogItemToggled(gv_victoryUI_StageSelectButtons[3], false, PlayerGroupAll());
        libNtve_gf_SetDialogItemToggled(gv_victoryUI_StageSelectButtons[4], false, PlayerGroupAll());
        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), true);
        PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), Color(40.00, 40.00, 40.00));
        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), false);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:950

        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), true);
        PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), Color(40.00, 40.00, 40.00));
        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), false);
        PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), Color(100.00, 100.00, 100.00));
        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), true);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:952

        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), false);
        PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), Color(100.00, 100.00, 100.00));
        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), true);
        PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), Color(40.00, 40.00, 40.00));
        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[4]), true);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:954

        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), true);
        PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), Color(40.00, 40.00, 40.00));
        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[4]), true);
        PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[4]), Color(40.00, 40.00, 40.00));
        libNtve_gf_SetDialogItemText(gv_victoryUI_StageNumber, StringExternal("UI/TutorialStage2Number"), PlayerGroupAll());

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:991

        libNtve_gf_SetDialogItemToggled(gv_victoryUI_StageSelectButtons[3], true, PlayerGroupAll());
        libNtve_gf_SetDialogItemToggled(gv_victoryUI_StageSelectButtons[4], false, PlayerGroupAll());
        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), true);
        PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), Color(40.00, 40.00, 40.00));
        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), true);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:993

        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), true);
        PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), Color(40.00, 40.00, 40.00));
        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), true);
        PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), Color(40.00, 40.00, 40.00));
        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), false);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2mapMapScript.galaxy:910

        libNtve_gf_SetDialogItemToggled(gv_victoryUI_StageSelectButtons[3], false, PlayerGroupAll());
        libNtve_gf_SetDialogItemToggled(gv_victoryUI_StageSelectButtons[4], false, PlayerGroupAll());
        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), false);
        PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), Color(100.00, 100.00, 100.00));
        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), true);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2mapMapScript.galaxy:912

        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), false);
        PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), Color(100.00, 100.00, 100.00));
        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), true);
        PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), Color(40.00, 40.00, 40.00));
        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), true);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2mapMapScript.galaxy:914

        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), true);
        PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), Color(40.00, 40.00, 40.00));
        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), true);
        PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), Color(40.00, 40.00, 40.00));
        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[4]), true);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2mapMapScript.galaxy:916

        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), true);
        PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), Color(40.00, 40.00, 40.00));
        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[4]), true);
        PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[4]), Color(40.00, 40.00, 40.00));
        libNtve_gf_SetDialogItemText(gv_victoryUI_StageNumber, StringExternal("UI/TutorialStage1Number"), PlayerGroupAll());

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2mapMapScript.galaxy:948

        libNtve_gf_SetDialogItemToggled(gv_victoryUI_StageSelectButtons[3], false, PlayerGroupAll());
        libNtve_gf_SetDialogItemToggled(gv_victoryUI_StageSelectButtons[4], false, PlayerGroupAll());
        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), true);
        PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), Color(40.00, 40.00, 40.00));
        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), false);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2mapMapScript.galaxy:950

        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), true);
        PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), Color(40.00, 40.00, 40.00));
        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), false);
        PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), Color(100.00, 100.00, 100.00));
        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), true);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2mapMapScript.galaxy:952

        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), false);
        PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), Color(100.00, 100.00, 100.00));
        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), true);
        PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), Color(40.00, 40.00, 40.00));
        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[4]), true);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2mapMapScript.galaxy:954

        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), true);
        PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), Color(40.00, 40.00, 40.00));
        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[4]), true);
        PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[4]), Color(40.00, 40.00, 40.00));
        libNtve_gf_SetDialogItemText(gv_victoryUI_StageNumber, StringExternal("UI/TutorialStage2Number"), PlayerGroupAll());

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2mapMapScript.galaxy:991

        libNtve_gf_SetDialogItemToggled(gv_victoryUI_StageSelectButtons[3], true, PlayerGroupAll());
        libNtve_gf_SetDialogItemToggled(gv_victoryUI_StageSelectButtons[4], false, PlayerGroupAll());
        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), true);
        PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), Color(40.00, 40.00, 40.00));
        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), true);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2mapMapScript.galaxy:993

        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), true);
        PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), Color(40.00, 40.00, 40.00));
        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), true);
        PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), Color(40.00, 40.00, 40.00));
        PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), false);