# Set Global Cutscene Filter

Grammar — Set the global cutscene filter to inFilter.
FlagsNative | Action

Sets the filter for all cutscenes (removing any previous filters). Any nodes with a non-empty filter property that does not match this value will be filtered out of your cutscene. Newly created cutscenes will use this filter.

# Arguments

  • string — Filter

Returns — void

native void CutsceneSetGlobalFilter(string inFilter);

Category: Cutscene / Cutscenes / Filters

# Examples

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zstorychar.sc2map/MapScript.galaxy:114

    }

    CutsceneSetGlobalFilter("Char");
    lib281DEC45_gf_InitializeSwarmStoryData("ZStoryChar");
    libSwaC_gf_RegisterStoryEvent(libSwaC_ge_ZS_Event_StoryUtilViewMainSet, gt_ViewCharSet);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zstoryexpedition.sc2map/MapScript.galaxy:133

    }

    CutsceneSetGlobalFilter("Kaldir");
    lib281DEC45_gf_InitializeSwarmStoryData("ZStoryExpedition");
    libSwaC_gf_RegisterStoryEvent(libSwaC_ge_ZS_Event_StoryUtilViewMainSet, gt_ViewKaldirSet);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zstoryhybrid.sc2map/MapScript.galaxy:101


    if ((libSwaC_gf_MissionStatusCheck("ZHybrid2", libSwaC_ge_MissionStatus_Completed) == true)) {
        CutsceneSetGlobalFilter("HybridNight");
    }
    else {

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zstoryhybrid.sc2map/MapScript.galaxy:104

    }
    else {
        CutsceneSetGlobalFilter("HybridDusk");
    }
    lib281DEC45_gf_InitializeSwarmStoryData("ZStoryHybrid");

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zstorykorhal.sc2map/MapScript.galaxy:126


    if ((libSwaC_gf_MissionStatusCheck("ZKorhal1", libSwaC_ge_MissionStatus_Completed) == false)) {
        CutsceneSetGlobalFilter("KorhalSpace");
    }
    else {

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zstoryspace.sc2map/MapScript.galaxy:112

    }

    CutsceneSetGlobalFilter("Space");
    lib281DEC45_gf_InitializeSwarmStoryData("ZStorySpace");
    libSwaC_gf_RegisterStoryEvent(libSwaC_ge_ZS_Event_StoryUtilViewMainSet, gt_ViewSpaceSet);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zstoryspace.sc2map/MapScript.galaxy:732

    Wait(0.0625, c_timeGame);
    if ((UserDataGetInt("WriterStates", "ToshChoice", "Value", 1) == 2)) {
        CutsceneSetGlobalFilter("Nova");
    }
    else {

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zstoryspace.sc2map/MapScript.galaxy:735

    }
    else {
        CutsceneSetGlobalFilter("Tosh");
    }
    lib281DEC45_gf_PlayScriptedConversation("zSMBriefing_Space02", c_conversationSkipSimple, lib281DEC45_ge_SwarmStoryFadeStyle_FadeOutOnSkip, null);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zstoryspace.sc2map/MapScript.galaxy:738

    }
    lib281DEC45_gf_PlayScriptedConversation("zSMBriefing_Space02", c_conversationSkipSimple, lib281DEC45_ge_SwarmStoryFadeStyle_FadeOutOnSkip, null);
    CutsceneSetGlobalFilter("Space");
    return true;
}

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zstoryzerus.sc2map/MapScript.galaxy:105

    }

    CutsceneSetGlobalFilter("Zerus");
    lib281DEC45_gf_InitializeSwarmStoryData("ZStoryZerus");
    libSwaC_gf_RegisterStoryEvent(libSwaC_ge_ZS_Event_StoryUtilViewMainSet, gt_ViewZerusSet);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zstorychar.sc2mapMapScript.galaxy:114

    }

    CutsceneSetGlobalFilter("Char");
    lib281DEC45_gf_InitializeSwarmStoryData("ZStoryChar");
    libSwaC_gf_RegisterStoryEvent(libSwaC_ge_ZS_Event_StoryUtilViewMainSet, gt_ViewCharSet);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zstoryexpedition.sc2mapMapScript.galaxy:133

    }

    CutsceneSetGlobalFilter("Kaldir");
    lib281DEC45_gf_InitializeSwarmStoryData("ZStoryExpedition");
    libSwaC_gf_RegisterStoryEvent(libSwaC_ge_ZS_Event_StoryUtilViewMainSet, gt_ViewKaldirSet);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zstoryhybrid.sc2mapMapScript.galaxy:101


    if ((libSwaC_gf_MissionStatusCheck("ZHybrid2", libSwaC_ge_MissionStatus_Completed) == true)) {
        CutsceneSetGlobalFilter("HybridNight");
    }
    else {

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zstoryhybrid.sc2mapMapScript.galaxy:104

    }
    else {
        CutsceneSetGlobalFilter("HybridDusk");
    }
    lib281DEC45_gf_InitializeSwarmStoryData("ZStoryHybrid");

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zstorykorhal.sc2mapMapScript.galaxy:126


    if ((libSwaC_gf_MissionStatusCheck("ZKorhal1", libSwaC_ge_MissionStatus_Completed) == false)) {
        CutsceneSetGlobalFilter("KorhalSpace");
    }
    else {

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zstoryspace.sc2mapMapScript.galaxy:112

    }

    CutsceneSetGlobalFilter("Space");
    lib281DEC45_gf_InitializeSwarmStoryData("ZStorySpace");
    libSwaC_gf_RegisterStoryEvent(libSwaC_ge_ZS_Event_StoryUtilViewMainSet, gt_ViewSpaceSet);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zstoryspace.sc2mapMapScript.galaxy:732

    Wait(0.0625, c_timeGame);
    if ((UserDataGetInt("WriterStates", "ToshChoice", "Value", 1) == 2)) {
        CutsceneSetGlobalFilter("Nova");
    }
    else {

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zstoryspace.sc2mapMapScript.galaxy:735

    }
    else {
        CutsceneSetGlobalFilter("Tosh");
    }
    lib281DEC45_gf_PlayScriptedConversation("zSMBriefing_Space02", c_conversationSkipSimple, lib281DEC45_ge_SwarmStoryFadeStyle_FadeOutOnSkip, null);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zstoryspace.sc2mapMapScript.galaxy:738

    }
    lib281DEC45_gf_PlayScriptedConversation("zSMBriefing_Space02", c_conversationSkipSimple, lib281DEC45_ge_SwarmStoryFadeStyle_FadeOutOnSkip, null);
    CutsceneSetGlobalFilter("Space");
    return true;
}

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zstoryzerus.sc2mapMapScript.galaxy:105

    }

    CutsceneSetGlobalFilter("Zerus");
    lib281DEC45_gf_InitializeSwarmStoryData("ZStoryZerus");
    libSwaC_gf_RegisterStoryEvent(libSwaC_ge_ZS_Event_StoryUtilViewMainSet, gt_ViewZerusSet);