# Last Animation Query

FlagsNative | Function

Returns — generichandle<animlengthquery>

native generichandle AnimLengthQueryLastCreated();

Category: Animation / Advanced

# Examples

mods/novastoryassets.sc2modbase2.sc2maps/maps/campaign/nova/nova06.sc2map/MapScript.galaxy:7169

    AnimLengthQueryByName(ActorFromDoodad(DoodadFromId(1667)), "Driveby", true);
    AnimLengthQueryWait();
    lv_carAnimation = AnimLengthQueryLastCreated();
    lv_animationTime = AnimLengthRemainingSync(lv_carAnimation);
    if ((lv_animationTime >= 8.0)) {

mods/novastoryassets.sc2modbase2.sc2maps/maps/campaign/nova/nova06.sc2map/MapScript.galaxy:7620

    AnimLengthQueryByName(ActorFromDoodad(DoodadFromId(5973)), "Driveby", true);
    AnimLengthQueryWait();
    lv_carAnimation = AnimLengthQueryLastCreated();
    lv_animationTime = AnimLengthRemainingSync(lv_carAnimation);
    if ((lv_animationTime >= 11.0) && (lv_animationTime <= 18.0)) {

mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova06.sc2mapMapScript.galaxy:7169

    AnimLengthQueryByName(ActorFromDoodad(DoodadFromId(1667)), "Driveby", true);
    AnimLengthQueryWait();
    lv_carAnimation = AnimLengthQueryLastCreated();
    lv_animationTime = AnimLengthRemainingSync(lv_carAnimation);
    if ((lv_animationTime >= 8.0)) {

mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova06.sc2mapMapScript.galaxy:7620

    AnimLengthQueryByName(ActorFromDoodad(DoodadFromId(5973)), "Driveby", true);
    AnimLengthQueryWait();
    lv_carAnimation = AnimLengthQueryLastCreated();
    lv_animationTime = AnimLengthRemainingSync(lv_carAnimation);
    if ((lv_animationTime >= 11.0) && (lv_animationTime <= 18.0)) {