# Set Cutscene Time

Grammar — Set inCutscene time to __inTime|Time __Milliseconds.
FlagsNative | Action

Sets the time of the specified cutscene. Time is measured in milliseconds. This does not Pause or Play the cutscene – it simply changes the current time.

# Arguments

  • int<preset::Cutscene> — Cutscene
  • int — Time

Returns — void

native void CutsceneSetTime(int inCutscene, int inTime);

Category: Cutscene / Cutscenes

# Examples

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar02.sc2map/MapScript.galaxy:2113

    TriggerEnable(TriggerGetCurrent(), false);
    CutscenePause(gv_scene_GorgonLaunch);
    CutsceneSetTime(gv_scene_GorgonLaunch, 0);
    UnitCreate(1, "GehennaCruiser", 0, gv_pLAYER_04_GORGON, PointFromId(222), -133.9159);
    gv_tHE_ONE_GORGON = UnitLastCreated();

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar02.sc2map/MapScript.galaxy:2162

    gv_gorgonBeingSpawned = true;
    CutscenePause(gv_scene_GorgonLaunch);
    CutsceneSetTime(gv_scene_GorgonLaunch, 0);
    UnitCreate(1, "GehennaCruiser", 0, gv_pLAYER_04_GORGON, PointFromId(222), -133.9159);
    gv_tHE_ONE_GORGON = UnitLastCreated();

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar02.sc2map/MapScript.galaxy:4757

    libSwaC_gf_EnableDisableZerglingRespawn(true);
    CutscenePause(gv_scene_GorgonLaunch);
    CutsceneSetTime(gv_scene_GorgonLaunch, 0);
    GameTimeOfDayPause(false);
    PlayerSetState(gv_pLAYER_01_USER, c_playerStateXPGain, true);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar02.sc2map/MapScript.galaxy:5004

    TriggerEnable(TriggerGetCurrent(), false);
    CutscenePause(gv_scene_GorgonLaunch);
    CutsceneSetTime(gv_scene_GorgonLaunch, 0);
    UnitCreate(1, "GehennaCruiser", 0, gv_pLAYER_04_GORGON, PointFromId(222), -133.9159);
    libNtve_gf_SendActorMessageToUnit(UnitLastCreated(), "AnimCopy ::external.GorgonFinderTag");

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zchar02.sc2mapMapScript.galaxy:2113

    TriggerEnable(TriggerGetCurrent(), false);
    CutscenePause(gv_scene_GorgonLaunch);
    CutsceneSetTime(gv_scene_GorgonLaunch, 0);
    UnitCreate(1, "GehennaCruiser", 0, gv_pLAYER_04_GORGON, PointFromId(222), -133.9159);
    gv_tHE_ONE_GORGON = UnitLastCreated();

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zchar02.sc2mapMapScript.galaxy:2162

    gv_gorgonBeingSpawned = true;
    CutscenePause(gv_scene_GorgonLaunch);
    CutsceneSetTime(gv_scene_GorgonLaunch, 0);
    UnitCreate(1, "GehennaCruiser", 0, gv_pLAYER_04_GORGON, PointFromId(222), -133.9159);
    gv_tHE_ONE_GORGON = UnitLastCreated();

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zchar02.sc2mapMapScript.galaxy:4757

    libSwaC_gf_EnableDisableZerglingRespawn(true);
    CutscenePause(gv_scene_GorgonLaunch);
    CutsceneSetTime(gv_scene_GorgonLaunch, 0);
    GameTimeOfDayPause(false);
    PlayerSetState(gv_pLAYER_01_USER, c_playerStateXPGain, true);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zchar02.sc2mapMapScript.galaxy:5004

    TriggerEnable(TriggerGetCurrent(), false);
    CutscenePause(gv_scene_GorgonLaunch);
    CutsceneSetTime(gv_scene_GorgonLaunch, 0);
    UnitCreate(1, "GehennaCruiser", 0, gv_pLAYER_04_GORGON, PointFromId(222), -133.9159);
    libNtve_gf_SendActorMessageToUnit(UnitLastCreated(), "AnimCopy ::external.GorgonFinderTag");

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:23692

    }

    CutsceneSetTime(libSwaC_gv_zS_DebugCutscenes[libSwaC_gv_zS_DebugActiveCutscene], lv_time);
    return true;
}

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:3951

    else {
    }
    CutsceneSetTime(lib281DEC45_gv_zSS_ConversationScene, 0);
    CutscenePause(lib281DEC45_gv_zSS_ConversationScene);
}

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:10187

    }

    CutsceneSetTime(libVoiC_gv_pC_DebugCutscenes[libVoiC_gv_pC_DebugActiveCutscene], lv_time);
    return true;
}

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:3333

    CutsceneCreateNew(libVCST_gv_pS_RoomConvoSceneFiles[(libVCST_gv_pS_CurrentRoom)], libVCST_gv_pS_ConversationCutscenePosition, 0.0, PlayerGroupAll(), false);
    libVCST_gv_pS_ConversationScene = CutsceneLastCreated();
    CutsceneSetTime(libVCST_gv_pS_ConversationScene, 0);
    CutscenePause(libVCST_gv_pS_ConversationScene);
}

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:4904

        DialogControlSetVisible(libVCUI_gv_pU_GPHolder, PlayerGroupAll(), lp_showHide);
        libNtve_gf_SetDialogItemCutscene(libVCUI_gv_pU_GPCutscene, "Cutscenes\\UI_SoAMission.SC2Cutscene", PlayerGroupAll());
        CutsceneSetTime(CutsceneGetTriggerControl(libVCUI_gv_pU_GPEnergyGlassScene), 0);
        CutsceneSetTime(CutsceneGetTriggerControl(libVCUI_gv_pU_GPEnergyBarScene), 0);
        CutsceneSetTime(CutsceneGetTriggerControl(libVCUI_gv_pU_GPCutscene), 0);

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:4905

        libNtve_gf_SetDialogItemCutscene(libVCUI_gv_pU_GPCutscene, "Cutscenes\\UI_SoAMission.SC2Cutscene", PlayerGroupAll());
        CutsceneSetTime(CutsceneGetTriggerControl(libVCUI_gv_pU_GPEnergyGlassScene), 0);
        CutsceneSetTime(CutsceneGetTriggerControl(libVCUI_gv_pU_GPEnergyBarScene), 0);
        CutsceneSetTime(CutsceneGetTriggerControl(libVCUI_gv_pU_GPCutscene), 0);
        CutscenePlay(CutsceneGetTriggerControl(libVCUI_gv_pU_GPCutscene));

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:4906

        CutsceneSetTime(CutsceneGetTriggerControl(libVCUI_gv_pU_GPEnergyGlassScene), 0);
        CutsceneSetTime(CutsceneGetTriggerControl(libVCUI_gv_pU_GPEnergyBarScene), 0);
        CutsceneSetTime(CutsceneGetTriggerControl(libVCUI_gv_pU_GPCutscene), 0);
        CutscenePlay(CutsceneGetTriggerControl(libVCUI_gv_pU_GPCutscene));
        DialogControlSetVisible(libVCUI_gv_pU_GPCutscene, PlayerGroupAll(), true);

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCST.galaxy:2890

    CutsceneCreateNew(libNCST_gv_nS_RoomConvoSceneFiles[(libNCST_gv_nS_CurrentRoom)], libNCST_gv_nS_ConversationCutscenePosition, 0.0, PlayerGroupAll(), false);
    libNCST_gv_nS_ConversationScene = CutsceneLastCreated();
    CutsceneSetTime(libNCST_gv_nS_ConversationScene, 0);
    CutscenePause(libNCST_gv_nS_ConversationScene);
}

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:4848

        }

        CutsceneSetTime(CutsceneGetTriggerControl(libCOUI_gv_cU_GPCutscene[lp_player]), 0);
        CutscenePlay(CutsceneGetTriggerControl(libCOUI_gv_cU_GPCutscene[lp_player]));
        if ((libCOUI_gv_cU_GPEnergyBarScene[lp_player] != c_invalidDialogControlId)) {

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:4851

        CutscenePlay(CutsceneGetTriggerControl(libCOUI_gv_cU_GPCutscene[lp_player]));
        if ((libCOUI_gv_cU_GPEnergyBarScene[lp_player] != c_invalidDialogControlId)) {
            CutsceneSetTime(CutsceneGetTriggerControl(libCOUI_gv_cU_GPEnergyBarScene[lp_player]), 0);
        }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:4855


        if ((libCOUI_gv_cU_GPEnergyGlassScene[lp_player] != c_invalidDialogControlId)) {
            CutsceneSetTime(CutsceneGetTriggerControl(libCOUI_gv_cU_GPEnergyGlassScene[lp_player]), 0);
        }