# Animation Time Remaining
Grammar — The timer remaining returned by animation query handle
Flags —Native
|Function
Returns the animation time remaining previously queried. Pass this function the handle returned by the “Last Animation Query” functions to get the value, but make sure that you call Wait for Animation first to ensure that the animation query is finished. This function is only valid with a handle created by “Query Animation Length By Name”.
# Arguments
generichandle
<animlengthquery> — Handle
Returns — fixed
native fixed AnimLengthRemainingSync(generichandle h);
# 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
mods/novastoryassets.sc2mod — base2.sc2maps/maps/campaign/nova/nova06.sc2map/MapScript.galaxy:7170
AnimLengthQueryWait();
lv_carAnimation = AnimLengthQueryLastCreated();
lv_animationTime = AnimLengthRemainingSync(lv_carAnimation);
if ((lv_animationTime >= 8.0)) {
Wait((10.0 - lv_animationTime), c_timeGame);
mods/novastoryassets.sc2mod — base2.sc2maps/maps/campaign/nova/nova06.sc2map/MapScript.galaxy:7621
AnimLengthQueryWait();
lv_carAnimation = AnimLengthQueryLastCreated();
lv_animationTime = AnimLengthRemainingSync(lv_carAnimation);
if ((lv_animationTime >= 11.0) && (lv_animationTime <= 18.0)) {
libNtve_gf_SetAnimationTimeScale(ActorFromDoodad(DoodadFromId(5973)), "Driveby", 0.8);
mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova06.sc2map — MapScript.galaxy:7170
AnimLengthQueryWait();
lv_carAnimation = AnimLengthQueryLastCreated();
lv_animationTime = AnimLengthRemainingSync(lv_carAnimation);
if ((lv_animationTime >= 8.0)) {
Wait((10.0 - lv_animationTime), c_timeGame);
mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova06.sc2map — MapScript.galaxy:7621
AnimLengthQueryWait();
lv_carAnimation = AnimLengthQueryLastCreated();
lv_animationTime = AnimLengthRemainingSync(lv_carAnimation);
if ((lv_animationTime >= 11.0) && (lv_animationTime <= 18.0)) {
libNtve_gf_SetAnimationTimeScale(ActorFromDoodad(DoodadFromId(5973)), "Driveby", 0.8);