# Set Animation Completion
Grammar — Set the identifier animation completion for target to percent percent
Flags —Action
Sets the progress completion percent for an animation. Does the same thing as “Set Animation Time”, but with different parameters.
# Arguments
actor
— Targetstring
— Identifierfixed
— Percent
Returns — void
void libNtve_gf_SetAnimationCompletion(
actor lp_target,
string lp_identifier,
fixed lp_percent,
);
# Related
Category: Animation / Advanced
- Last Animation Query —
generichandle
<animlengthquery> — AnimLengthQueryLastCreated - Query Animation Length By Identifier —
void
— AnimLengthQueryByName - Query Animation Length By Props —
void
— AnimLengthQueryByProps - Wait for Animation Length Queries —
void
— AnimLengthQueryWait - Wait for Animation —
void
— AnimWait - Animation Length —
fixed
— AnimLengthSync - Animation Time Remaining —
fixed
— AnimLengthRemainingSync - Set Animation Time —
void
— libNtve_gf_SetAnimationTime - Set Animation Time Scale —
void
— libNtve_gf_SetAnimationTimeScale - Set Animation Completion —
void
— libNtve_gf_SetAnimationCompletion - Set Animation Duration —
void
— libNtve_gf_SetAnimationDuration - Load Model Animation —
void
— ModelAnimationLoad - Load Overriding Model Animation —
void
— ModelAnimationLoadOverriding - Unload Model Animation —
void
— ModelAnimationUnload - Load Animation for Unit Type —
void
— UnitTypeAnimationLoad - Load Overriding Animation for Unit Type —
void
— UnitTypeAnimationLoadOverriding - Unload Animation for Unit Type —
void
— UnitTypeAnimationUnload
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:9109
if ((lp_instant == true)) {
if ((lp_room != ge_RoomID_RoomCantina)) {
libNtve_gf_SetAnimationCompletion(libNtve_gf_MainActorofUnit(lv_door), gv_aNIMID_HIGHLIGHT, 100.0);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:9148
libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(lv_door), gv_aNIMID_HIGHLIGHT, "Highlight End", c_animFlagPlayForever | c_animFlagNonLooping, c_animTimeDefault);
if ((lp_instant == true)) {
libNtve_gf_SetAnimationCompletion(libNtve_gf_MainActorofUnit(lv_door), gv_aNIMID_HIGHLIGHT, 100.0);
}
else {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:13120
if ((lp_mainAnim == true)) {
libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(gf_BriefingScreen(lp_room, ge_BriefingScreen_Main)), c_animNameDefault, "Birth", c_animFlagPlayForever | c_animFlagNonLooping, 0.0);
libNtve_gf_SetAnimationCompletion(libNtve_gf_MainActorofUnit(gf_BriefingScreen(lp_room, ge_BriefingScreen_Main)), c_animNameDefault, 100.0);
gf_RemoveVisibleUnit(true, gf_BriefingScreen(lp_room, ge_BriefingScreen_Main));
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:13130
if ((lp_left == true)) {
libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(gf_BriefingScreen(lp_room, ge_BriefingScreen_Left)), c_animNameDefault, "Birth", c_animFlagPlayForever | c_animFlagNonLooping, 0.0);
libNtve_gf_SetAnimationCompletion(libNtve_gf_MainActorofUnit(gf_BriefingScreen(lp_room, ge_BriefingScreen_Left)), c_animNameDefault, 100.0);
gf_RemoveVisibleUnit(true, gf_BriefingScreen(lp_room, ge_BriefingScreen_Left));
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:13136
if ((lp_right == true)) {
libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(gf_BriefingScreen(lp_room, ge_BriefingScreen_Right)), c_animNameDefault, "Birth", c_animFlagPlayForever | c_animFlagNonLooping, 0.0);
libNtve_gf_SetAnimationCompletion(libNtve_gf_MainActorofUnit(gf_BriefingScreen(lp_room, ge_BriefingScreen_Right)), c_animNameDefault, 100.0);
gf_RemoveVisibleUnit(true, gf_BriefingScreen(lp_room, ge_BriefingScreen_Right));
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:14942
gf_HotspotZoom(gf_RoomUnit(gv_currentRoom), "Zoom_04", "Fly 04", 0.0);
libNtve_gf_SetAnimationCompletion(libNtve_gf_MainActorofUnit(gf_RoomUnit(gv_currentRoom)), gv_aNIMID_ZOOM, 100.0);
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:16927
libCamp_gf_HideStoryUI(false, false);
gf_HotspotZoom(gv_cantinaRoom, "Zoom_07", "Fly 07", 0.0);
libNtve_gf_SetAnimationCompletion(libNtve_gf_MainActorofUnit(gv_cantinaRoom), gv_aNIMID_ZOOM, 100.0);
CinematicFade(true, 1.0, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, false);
return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:17035
gf_SetIdleState(ge_IdleState_Busy);
gf_HotspotZoom(gv_bridgeRoom, "BattleReport", "Fly", 0.0);
libNtve_gf_SetAnimationCompletion(libNtve_gf_MainActorofUnit(gf_RoomUnit(ge_RoomID_RoomBridge)), gv_aNIMID_ZOOM, 100.0);
gf_PauseNewItemInfo(true);
gf_DisplayRoomChangePanel();
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:19023
libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(gv_cantinaDoor), c_animNameDefault, "Highlight Start", c_animFlagPlayForever, 0.0);
libNtve_gf_SetAnimationCompletion(libNtve_gf_MainActorofUnit(gv_cantinaDoor), c_animNameDefault, 100.0);
Wait(1.0, c_timeGame);
gf_ClearAnimationwithblendtime(c_animNameDefault, gv_cantinaDoor, c_animTimeDefault);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:22876
gf_HotspotZoom(gf_RoomUnit(ge_RoomID_RoomCantina), "Zoom_05", "Fly 05", 0.0);
libNtve_gf_SetAnimationCompletion(libNtve_gf_MainActorofUnit(gf_RoomUnit(ge_RoomID_RoomCantina)), gv_aNIMID_ZOOM, 100.0);
libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(gf_RoomUnit(ge_RoomID_RoomCantina)), gv_aNIMID_ZOOM, "Stand", c_animFlagPlayForever, c_animTimeDefault);
return true;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:9109
if ((lp_instant == true)) {
if ((lp_room != ge_RoomID_RoomCantina)) {
libNtve_gf_SetAnimationCompletion(libNtve_gf_MainActorofUnit(lv_door), gv_aNIMID_HIGHLIGHT, 100.0);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:9148
libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(lv_door), gv_aNIMID_HIGHLIGHT, "Highlight End", c_animFlagPlayForever | c_animFlagNonLooping, c_animTimeDefault);
if ((lp_instant == true)) {
libNtve_gf_SetAnimationCompletion(libNtve_gf_MainActorofUnit(lv_door), gv_aNIMID_HIGHLIGHT, 100.0);
}
else {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:13120
if ((lp_mainAnim == true)) {
libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(gf_BriefingScreen(lp_room, ge_BriefingScreen_Main)), c_animNameDefault, "Birth", c_animFlagPlayForever | c_animFlagNonLooping, 0.0);
libNtve_gf_SetAnimationCompletion(libNtve_gf_MainActorofUnit(gf_BriefingScreen(lp_room, ge_BriefingScreen_Main)), c_animNameDefault, 100.0);
gf_RemoveVisibleUnit(true, gf_BriefingScreen(lp_room, ge_BriefingScreen_Main));
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:13130
if ((lp_left == true)) {
libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(gf_BriefingScreen(lp_room, ge_BriefingScreen_Left)), c_animNameDefault, "Birth", c_animFlagPlayForever | c_animFlagNonLooping, 0.0);
libNtve_gf_SetAnimationCompletion(libNtve_gf_MainActorofUnit(gf_BriefingScreen(lp_room, ge_BriefingScreen_Left)), c_animNameDefault, 100.0);
gf_RemoveVisibleUnit(true, gf_BriefingScreen(lp_room, ge_BriefingScreen_Left));
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:13136
if ((lp_right == true)) {
libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(gf_BriefingScreen(lp_room, ge_BriefingScreen_Right)), c_animNameDefault, "Birth", c_animFlagPlayForever | c_animFlagNonLooping, 0.0);
libNtve_gf_SetAnimationCompletion(libNtve_gf_MainActorofUnit(gf_BriefingScreen(lp_room, ge_BriefingScreen_Right)), c_animNameDefault, 100.0);
gf_RemoveVisibleUnit(true, gf_BriefingScreen(lp_room, ge_BriefingScreen_Right));
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:14942
gf_HotspotZoom(gf_RoomUnit(gv_currentRoom), "Zoom_04", "Fly 04", 0.0);
libNtve_gf_SetAnimationCompletion(libNtve_gf_MainActorofUnit(gf_RoomUnit(gv_currentRoom)), gv_aNIMID_ZOOM, 100.0);
return true;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:16927
libCamp_gf_HideStoryUI(false, false);
gf_HotspotZoom(gv_cantinaRoom, "Zoom_07", "Fly 07", 0.0);
libNtve_gf_SetAnimationCompletion(libNtve_gf_MainActorofUnit(gv_cantinaRoom), gv_aNIMID_ZOOM, 100.0);
CinematicFade(true, 1.0, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, false);
return true;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:17035
gf_SetIdleState(ge_IdleState_Busy);
gf_HotspotZoom(gv_bridgeRoom, "BattleReport", "Fly", 0.0);
libNtve_gf_SetAnimationCompletion(libNtve_gf_MainActorofUnit(gf_RoomUnit(ge_RoomID_RoomBridge)), gv_aNIMID_ZOOM, 100.0);
gf_PauseNewItemInfo(true);
gf_DisplayRoomChangePanel();
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:19023
libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(gv_cantinaDoor), c_animNameDefault, "Highlight Start", c_animFlagPlayForever, 0.0);
libNtve_gf_SetAnimationCompletion(libNtve_gf_MainActorofUnit(gv_cantinaDoor), c_animNameDefault, 100.0);
Wait(1.0, c_timeGame);
gf_ClearAnimationwithblendtime(c_animNameDefault, gv_cantinaDoor, c_animTimeDefault);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:22876
gf_HotspotZoom(gf_RoomUnit(ge_RoomID_RoomCantina), "Zoom_05", "Fly 05", 0.0);
libNtve_gf_SetAnimationCompletion(libNtve_gf_MainActorofUnit(gf_RoomUnit(ge_RoomID_RoomCantina)), gv_aNIMID_ZOOM, 100.0);
libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(gf_RoomUnit(ge_RoomID_RoomCantina)), gv_aNIMID_ZOOM, "Stand", c_animFlagPlayForever, c_animTimeDefault);
return true;
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zhybrid02.sc2map/MapScript.galaxy:640
UnitGroupAdd(gv_activeHybrid, lv_hybrid);
libNtve_gf_PauseUnit(lv_hybrid, false);
libNtve_gf_SetAnimationCompletion(libNtve_gf_MainActorofUnit(lv_hybrid), "::Baseline", ((1540.0 / 6667.0) * 100.0));
libNtve_gf_ShowHideUnit(lv_hybrid, true);
libNtve_gf_ShareVisionofUnit(lv_hybrid, true, gv_pLAYER_01_USER);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus02.sc2map/MapScript.galaxy:3620
else {
}
libNtve_gf_SetAnimationCompletion(ActorFromDoodad(gv_poolBubbles[lv_index]), c_animNameDefault, RandomFixed(0.0, 99.0));
}
return true;
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid02.sc2map — MapScript.galaxy:640
UnitGroupAdd(gv_activeHybrid, lv_hybrid);
libNtve_gf_PauseUnit(lv_hybrid, false);
libNtve_gf_SetAnimationCompletion(libNtve_gf_MainActorofUnit(lv_hybrid), "::Baseline", ((1540.0 / 6667.0) * 100.0));
libNtve_gf_ShowHideUnit(lv_hybrid, true);
libNtve_gf_ShareVisionofUnit(lv_hybrid, true, gv_pLAYER_01_USER);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus02.sc2map — MapScript.galaxy:3620
else {
}
libNtve_gf_SetAnimationCompletion(ActorFromDoodad(gv_poolBubbles[lv_index]), c_animNameDefault, RandomFixed(0.0, 99.0));
}
return true;
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pkorhal02.sc2map/MapScript.galaxy:5770
libNtve_gf_SendActorMessageToUnit(autoFC22266B_var, "ModelSwap ImmortalWarpIn");
libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(autoFC22266B_var), c_animNameDefault, "Birth", c_animFlagNonLooping, c_animTimeDefault);
libNtve_gf_SetAnimationCompletion(libNtve_gf_MainActorofUnit(autoFC22266B_var), c_animNameDefault, 50.0);
}
Wait(2.5, c_timeGame);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pkorhal02.sc2map — MapScript.galaxy:5770
libNtve_gf_SendActorMessageToUnit(autoFC22266B_var, "ModelSwap ImmortalWarpIn");
libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(autoFC22266B_var), c_animNameDefault, "Birth", c_animFlagNonLooping, c_animTimeDefault);
libNtve_gf_SetAnimationCompletion(libNtve_gf_MainActorofUnit(autoFC22266B_var), c_animNameDefault, 50.0);
}
Wait(2.5, c_timeGame);
mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod — base.stormdata/LibPEB1.galaxy:9958
SoundtrackStop(PlayerGroupAll(), c_soundtrackCategoryMusic, true);
libNtve_gf_PlayAnimationOnDoodadsInRegion(libPEB1_gv_shelter.lv_bridgeRegion, "Storm_Doodad_SC_Braxis_Infested_Bridge", "Lower", "Stand Morph Start 01", c_animFlagPlayForever | c_animFlagNonLooping, c_animTimeDefault);
libNtve_gf_SetAnimationCompletion(libPEB1_gv_victoryBridge, "Lower", 100.0);
}