# Query Animation Length By Identifier
Grammar — Query the length of animation and time remaining for identifier on actor
Flags —Native
|Action
Starts a query for the animation length and animation time remaining of the specific animation name for the given actor. Note that the animation length and remaining time may vary from player to player due to different game states or localities. This function will query the maximum length and maximum remaining time of all players when there are different values. Note that you may only do 512 animation length queries maximum in a single game. Use the “Last Animation Query” function to get a handle to this query which can be used to get the information retrieved after the query is complete.
# Arguments
actor
— Actorstring
— Identifierbool
— Get Scaled Time
Returns — void
native void AnimLengthQueryByName(
actor a,
string animName,
bool scaledTime,
);
# 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:7167
}
AnimLengthQueryByName(ActorFromDoodad(DoodadFromId(1667)), "Driveby", true);
AnimLengthQueryWait();
lv_carAnimation = AnimLengthQueryLastCreated();
mods/novastoryassets.sc2mod — base2.sc2maps/maps/campaign/nova/nova06.sc2map/MapScript.galaxy:7618
}
AnimLengthQueryByName(ActorFromDoodad(DoodadFromId(5973)), "Driveby", true);
AnimLengthQueryWait();
lv_carAnimation = AnimLengthQueryLastCreated();
mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova06.sc2map — MapScript.galaxy:7167
}
AnimLengthQueryByName(ActorFromDoodad(DoodadFromId(1667)), "Driveby", true);
AnimLengthQueryWait();
lv_carAnimation = AnimLengthQueryLastCreated();
mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova06.sc2map — MapScript.galaxy:7618
}
AnimLengthQueryByName(ActorFromDoodad(DoodadFromId(5973)), "Driveby", true);
AnimLengthQueryWait();
lv_carAnimation = AnimLengthQueryLastCreated();