# Set Cutscene Time
Grammar — Set inCutscene time to __inTime|Time __Milliseconds.
Flags —Native
|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> — Cutsceneint
— Time
Returns — void
native void CutsceneSetTime(int inCutscene, int inTime);
# Related
Category: Cutscene / Cutscenes
- Create Cutscene —
int
<preset::Cutscene> — CutsceneCreateNoPosition - Create Cutscene at Position —
int
<preset::Cutscene> — CutsceneCreateNew - Go To Next Cutscene Bookmark —
void
— CutsceneGoToNextBookmark - Cutscene EndScene Fired —
void
— TriggerAddEventCutsceneEndSceneFired - Create Cutscene —
int
<preset::Cutscene> — CutsceneCreate - Last Created Cutscene —
int
<preset::Cutscene> — CutsceneLastCreated - Play Cutscene —
void
— CutscenePlay - Pause Cutscene —
void
— CutscenePause - Stop Cutscene —
void
— CutsceneStop - Set Cutscene Time —
void
— CutsceneSetTime - Go To Cutscene Bookmark —
void
— CutsceneGoToBookmark - Show/Hide Cutscene —
void
— CutsceneShow - Play Cutscene Range Over Time —
void
— CutscenePlayCutsceneRangeOverTime - Cutscene Fade —
void
— CutsceneFade - Dialog Item Cutscene —
int
<preset::Cutscene> — CutsceneGetTriggerControl - Cutscene Bookmark Fired —
void
— TriggerAddEventCutsceneBookmarkFired - Triggering Cutscene —
int
<preset::Cutscene> — EventCutsceneId - Triggering Cutscene Bookmark —
string
— EventCutsceneBookmark - Wait For Cutscene To End —
void
— WaitForCutsceneToEnd
# Examples
campaigns/swarm.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:23692
}
CutsceneSetTime(libSwaC_gv_zS_DebugCutscenes[libSwaC_gv_zS_DebugActiveCutscene], lv_time);
return true;
}
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:3951
else {
}
CutsceneSetTime(lib281DEC45_gv_zSS_ConversationScene, 0);
CutscenePause(lib281DEC45_gv_zSS_ConversationScene);
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:10187
}
CutsceneSetTime(libVoiC_gv_pC_DebugCutscenes[libVoiC_gv_pC_DebugActiveCutscene], lv_time);
return true;
}
campaigns/voidstory.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2mod — base.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.sc2mod — base.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.sc2mod — base.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.sc2mod — base.sc2data/LibCOUI.galaxy:4855
if ((libCOUI_gv_cU_GPEnergyGlassScene[lp_player] != c_invalidDialogControlId)) {
CutsceneSetTime(CutsceneGetTriggerControl(libCOUI_gv_cU_GPEnergyGlassScene[lp_player]), 0);
}