# Turn Animation Properties Off

Grammar — Turn animation properties prop|Animation Properties off for target
FlagsAction

Turn off a special animation property. The unit must have the specified animation properties turned on (which can be done through one of the Turn Animation Properties On actions). An example of an animation property is “Fly” for Terran production buildings.

# Arguments

  • actor — Target
  • string<modelanim> — Properties

Returns — void

void libNtve_gf_TurnAnimationPropertiesOff(
	actor lp_target,
	string lp_prop,
);

Category: Animation / Basic

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:2770


        if ((UnitTestState(lv_scientist, c_unitStateIdle) == true)) {
            libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(lv_scientist), "Fast");
            libNtve_gf_SendActorMessageToUnit(lv_scientist, "AnimBracketStart Scared Fidget,Inferior,Start Fidget,Inferior Fidget,Inferior,E");
            Wait(5.0, c_timeReal);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:3566

    }
    else {
        libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(lp_unit), lp_property);
    }
    libNtve_gf_SendActorMessageToUnit(lp_unit, "AnimBlendTimeRemove");

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:29527

    gf_MakeUnitLookAtUnitAndBlinkWithDebugControl(gf_ActorUnit(ge_ActorID_ActorHanson), "FastHeadOnly", gf_ActorUnit(ge_ActorID_ActorRaynor), "Ref_Head");
    TransmissionWait(TransmissionLastSent(), 0.0);
    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(gf_ActorUnit(ge_ActorID_ActorRaynor)), "Listen");
    gf_BriefingPlayVideo("BriefingTHanson03a_04", lv__Room, ge_BriefingScreen_Center, true);
    gf_RemoveVisibleUnit(false, gf_ActorUnit(ge_ActorID_ActorRaynor));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:31935

    gf_MakeUnitLookAtUnitAndBlinkWithDebugControl(gf_ActorUnit(ge_ActorID_ActorTychus), "MedStanding", gf_ActorUnit(ge_ActorID_ActorRaynor), "Ref_Head");
    TransmissionWait(TransmissionLastSent(), 0.0);
    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(gf_ActorUnit(ge_ActorID_ActorRaynor)), "Listen");
    CameraApplyInfo(1, CameraInfoFromId(947), 1.0, -1, 10, true);
    gf_MakeUnitLookAtPointAndBlinkWithDebugControl(gf_ActorUnit(ge_ActorID_ActorTychus), "MedStanding", libNtve_gf_PointWithZOffset(PointFromId(945), 0.7));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:37531

    TriggerSkippableBegin(PlayerGroupAll(), 0, null, true, false);
    libNtve_gf_TurnAnimationPropertiesOn(libNtve_gf_MainActorofUnit(gf_ActorUnit(ge_ActorID_ActorTychus)), "C");
    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(gf_ActorUnit(ge_ActorID_ActorTychus)), "Cover");
    CameraApplyInfo(1, CameraInfoFromId(429), 0.0, -1, 10, true);
    CameraApplyInfo(1, CameraInfoFromId(468), 20.0, -1, 10, true);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:2753

                lv_targetDiamondback = libNtve_gf_ClosestUnitToPoint(UnitGetPosition(lv_driver), gv_nonActivatedDiamondbacks);
                UnitGroupRemove(gv_nonActivatedDiamondbacks, lv_targetDiamondback);
                libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(lv_targetDiamondback), "Stand Morph");
                libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(lv_targetDiamondback), "StandMorphEnd", "Stand Morph End", 0, c_animTimeDefault);
            }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian03.sc2map/MapScript.galaxy:5646

    UnitAbilityReset(gv_artifact, AbilityCommand("EnergyNova", 0), c_spendLocationAll);
    Wait(0.5, c_timeGame);
    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(gv_artifact), "Work");
    libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(gv_artifact), c_animNameDefault, "Stand", c_animFlagPlayForever, c_animTimeDefault);
    Wait(0.5, c_timeGame);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner05s.sc2mapMapScript.galaxy:2770


        if ((UnitTestState(lv_scientist, c_unitStateIdle) == true)) {
            libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(lv_scientist), "Fast");
            libNtve_gf_SendActorMessageToUnit(lv_scientist, "AnimBracketStart Scared Fidget,Inferior,Start Fidget,Inferior Fidget,Inferior,E");
            Wait(5.0, c_timeReal);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:3566

    }
    else {
        libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(lp_unit), lp_property);
    }
    libNtve_gf_SendActorMessageToUnit(lp_unit, "AnimBlendTimeRemove");

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:29527

    gf_MakeUnitLookAtUnitAndBlinkWithDebugControl(gf_ActorUnit(ge_ActorID_ActorHanson), "FastHeadOnly", gf_ActorUnit(ge_ActorID_ActorRaynor), "Ref_Head");
    TransmissionWait(TransmissionLastSent(), 0.0);
    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(gf_ActorUnit(ge_ActorID_ActorRaynor)), "Listen");
    gf_BriefingPlayVideo("BriefingTHanson03a_04", lv__Room, ge_BriefingScreen_Center, true);
    gf_RemoveVisibleUnit(false, gf_ActorUnit(ge_ActorID_ActorRaynor));

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:31935

    gf_MakeUnitLookAtUnitAndBlinkWithDebugControl(gf_ActorUnit(ge_ActorID_ActorTychus), "MedStanding", gf_ActorUnit(ge_ActorID_ActorRaynor), "Ref_Head");
    TransmissionWait(TransmissionLastSent(), 0.0);
    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(gf_ActorUnit(ge_ActorID_ActorRaynor)), "Listen");
    CameraApplyInfo(1, CameraInfoFromId(947), 1.0, -1, 10, true);
    gf_MakeUnitLookAtPointAndBlinkWithDebugControl(gf_ActorUnit(ge_ActorID_ActorTychus), "MedStanding", libNtve_gf_PointWithZOffset(PointFromId(945), 0.7));

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:37531

    TriggerSkippableBegin(PlayerGroupAll(), 0, null, true, false);
    libNtve_gf_TurnAnimationPropertiesOn(libNtve_gf_MainActorofUnit(gf_ActorUnit(ge_ActorID_ActorTychus)), "C");
    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(gf_ActorUnit(ge_ActorID_ActorTychus)), "Cover");
    CameraApplyInfo(1, CameraInfoFromId(429), 0.0, -1, 10, true);
    CameraApplyInfo(1, CameraInfoFromId(468), 20.0, -1, 10, true);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03a.sc2mapMapScript.galaxy:2753

                lv_targetDiamondback = libNtve_gf_ClosestUnitToPoint(UnitGetPosition(lv_driver), gv_nonActivatedDiamondbacks);
                UnitGroupRemove(gv_nonActivatedDiamondbacks, lv_targetDiamondback);
                libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(lv_targetDiamondback), "Stand Morph");
                libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(lv_targetDiamondback), "StandMorphEnd", "Stand Morph End", 0, c_animTimeDefault);
            }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian03.sc2mapMapScript.galaxy:5646

    UnitAbilityReset(gv_artifact, AbilityCommand("EnergyNova", 0), c_spendLocationAll);
    Wait(0.5, c_timeGame);
    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(gv_artifact), "Work");
    libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(gv_artifact), c_animNameDefault, "Stand", c_animFlagPlayForever, c_animTimeDefault);
    Wait(0.5, c_timeGame);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:7612

    }

    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(UnitFromId(6)), "Work");
    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(UnitFromId(58)), "Work");
    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(UnitFromId(323)), "Work");

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:7613


    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(UnitFromId(6)), "Work");
    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(UnitFromId(58)), "Work");
    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(UnitFromId(323)), "Work");
    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(UnitFromId(338)), "Work");

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:7614

    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(UnitFromId(6)), "Work");
    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(UnitFromId(58)), "Work");
    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(UnitFromId(323)), "Work");
    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(UnitFromId(338)), "Work");
    return true;

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:7615

    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(UnitFromId(58)), "Work");
    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(UnitFromId(323)), "Work");
    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(UnitFromId(338)), "Work");
    return true;
}

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:7635


    if ((UnitIsAlive(UnitFromId(6)) == false)) {
        libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(UnitFromId(58)), "Work");
        libNtve_gf_ClearAnimation(libNtve_gf_MainActorofUnit(UnitFromId(58)), "Queuing");
    }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:7640


    if ((UnitIsAlive(UnitFromId(323)) == false)) {
        libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(UnitFromId(338)), "Work");
        libNtve_gf_ClearAnimation(libNtve_gf_MainActorofUnit(UnitFromId(338)), "Queuing");
    }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2mapMapScript.galaxy:7612

    }

    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(UnitFromId(6)), "Work");
    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(UnitFromId(58)), "Work");
    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(UnitFromId(323)), "Work");

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2mapMapScript.galaxy:7613


    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(UnitFromId(6)), "Work");
    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(UnitFromId(58)), "Work");
    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(UnitFromId(323)), "Work");
    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(UnitFromId(338)), "Work");

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2mapMapScript.galaxy:7614

    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(UnitFromId(6)), "Work");
    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(UnitFromId(58)), "Work");
    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(UnitFromId(323)), "Work");
    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(UnitFromId(338)), "Work");
    return true;

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2mapMapScript.galaxy:7615

    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(UnitFromId(58)), "Work");
    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(UnitFromId(323)), "Work");
    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(UnitFromId(338)), "Work");
    return true;
}

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2mapMapScript.galaxy:7635


    if ((UnitIsAlive(UnitFromId(6)) == false)) {
        libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(UnitFromId(58)), "Work");
        libNtve_gf_ClearAnimation(libNtve_gf_MainActorofUnit(UnitFromId(58)), "Queuing");
    }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2mapMapScript.galaxy:7640


    if ((UnitIsAlive(UnitFromId(323)) == false)) {
        libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(UnitFromId(338)), "Work");
        libNtve_gf_ClearAnimation(libNtve_gf_MainActorofUnit(UnitFromId(338)), "Queuing");
    }

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:7768

    else {
        libNtve_gf_SendActorMessageToUnit(lv_eggUnit, libNtve_gf_AnimBlendTimeApply(0.0));
        libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(lv_eggUnit), "Cover");
        libNtve_gf_SendActorMessageToUnit(lv_eggUnit, "AnimBlendTimeRemove");
        libSwaC_gf_ZS_ArmyCustomEggPlayLight("Egg", lp_armyCategory);

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:9324

    if ((lp_unitSide == "Left")) {
        libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(libSwaC_gv_zS_ArmyCustomEvolutionUnitA), c_animNameDefault, "Spell A", 0, c_animTimeDefault);
        libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(libSwaC_gv_zS_ArmyCustomEvolutionUnitB), "Unpowered");
        libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(libSwaC_gv_zS_ArmyCustomEvolutionUnitB), c_animNameDefault, "Inferior", 0, c_animTimeDefault);
    }

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:9328

    }
    else {
        libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(libSwaC_gv_zS_ArmyCustomEvolutionUnitA), "Unpowered");
        if ((libSwaC_gv_zS_ArmyCustomEvolutionCategory == "Ultralisk")) {
            libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(libSwaC_gv_zS_ArmyCustomEvolutionUnitA), c_animNameDefault, "Stand 01", 0, c_animTimeDefault);

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:2928

    }
    else {
        libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(lp_unit), lp_property);
    }
    libNtve_gf_SendActorMessageToUnit(lp_unit, "AnimBlendTimeRemove");

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pshakuras02.sc2map/MapScript.galaxy:5299

    }
    TriggerStop(gt_TempleAnimation);
    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(gv_artanis), "Inferior");
    libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(gv_artanis), c_animNameDefault, "Stand", c_animFlagPlayForever, c_animTimeDefault);
    GameTimeOfDayPause(false);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pshakuras02.sc2map/MapScript.galaxy:5365

    libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(gv_artanis), c_animNameDefault, "Birth", c_animFlagPlayForever | c_animFlagNonLooping, c_animTimeDefault);
    Wait(13.167, c_timeReal);
    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(gv_artanis), "Inferior");
    libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(gv_artanis), c_animNameDefault, "Stand", c_animFlagPlayForever, c_animTimeDefault);
    return true;

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras02.sc2mapMapScript.galaxy:5299

    }
    TriggerStop(gt_TempleAnimation);
    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(gv_artanis), "Inferior");
    libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(gv_artanis), c_animNameDefault, "Stand", c_animFlagPlayForever, c_animTimeDefault);
    GameTimeOfDayPause(false);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras02.sc2mapMapScript.galaxy:5365

    libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(gv_artanis), c_animNameDefault, "Birth", c_animFlagPlayForever | c_animFlagNonLooping, c_animTimeDefault);
    Wait(13.167, c_timeReal);
    libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(gv_artanis), "Inferior");
    libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(gv_artanis), c_animNameDefault, "Stand", c_animFlagPlayForever, c_animTimeDefault);
    return true;

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:1487

    }
    else {
        libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(lp_unit), lp_property);
    }
    libNtve_gf_SendActorMessageToUnit(lp_unit, "AnimBlendTimeRemove");

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:6359

    libCore_gf_StoreIntegerForUnit(EventUnitTargetUnit(), 1, lv_count);
    if ((lv_count == 0)) {
        libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(EventUnitTargetUnit()), "Work");
    }

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCST.galaxy:1335

    }
    else {
        libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(lp_unit), lp_property);
    }
    libNtve_gf_SendActorMessageToUnit(lp_unit, "AnimBlendTimeRemove");