# Anim Blend Time Apply

Grammar — AnimBlendTimeApply blendTime
FlagsFunction

Constructs and returns an AnimBlendTimeApply actor message based on the parameters. This message will set the default blend time for animations played by the actor it is sent to. It will only work on actors with models that have animations.

# Arguments

  • fixed — Blend Time

Returns — string<actormsg>

string libNtve_gf_AnimBlendTimeApply(fixed lp_blendTime);

Category: Actor / Message Constructors

# Examples

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

void gf_TurnAnimationPropertiesOnOff (unit lp_unit, string lp_property, bool lp_onOff, fixed lp_blend) {
    // Implementation
    libNtve_gf_SendActorMessageToUnit(lp_unit, libNtve_gf_AnimBlendTimeApply(lp_blend));
    if ((lp_onOff == true)) {
        libNtve_gf_TurnAnimationPropertiesOn(libNtve_gf_MainActorofUnit(lp_unit), lp_property);

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

    libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(gf_ActorUnit(ge_ActorID_ActorRaynor)), c_animNameDefault, "Hover End", c_animFlagFullMatch | c_animFlagNonLooping, c_animTimeDefault);
    Wait(0.5, c_timeGame);
    libNtve_gf_SendActorMessageToUnit(gf_ActorUnit(ge_ActorID_ActorHorner), libNtve_gf_AnimBlendTimeApply(0.25));
    Wait(0.5, c_timeReal);
    Wait(1.0, c_timeReal);

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

    CameraApplyInfo(1, CameraInfoFromId(837), 1.25, -1, 10, true);
    Wait(0.5, c_timeReal);
    libNtve_gf_SendActorMessageToUnit(gf_ActorUnit(ge_ActorID_ActorHorner), libNtve_gf_AnimBlendTimeApply(0.25));
    return true;
}

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

    libNtve_gf_SetAnimationCompletion(libNtve_gf_MainActorofUnit(gf_ActorUnit(ge_ActorID_ActorRaynor)), c_animNameDefault, 30.0);
    Wait(0.5, c_timeReal);
    libNtve_gf_SendActorMessageToUnit(gf_ActorUnit(ge_ActorID_ActorRaynor), libNtve_gf_AnimBlendTimeApply(0.25));
    gf_MakeUnitLookAtUnitAndBlinkWithDebugControl(gf_ActorUnit(ge_ActorID_ActorHillMercContact), "InstantHeadOnlySubtle", gf_ActorUnit(ge_ActorID_ActorRaynor), "Ref_Head");
    CameraApplyInfo(1, CameraInfoFromId(198), 0.0, -1, 10, true);

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

void gf_TurnAnimationPropertiesOnOff (unit lp_unit, string lp_property, bool lp_onOff, fixed lp_blend) {
    // Implementation
    libNtve_gf_SendActorMessageToUnit(lp_unit, libNtve_gf_AnimBlendTimeApply(lp_blend));
    if ((lp_onOff == true)) {
        libNtve_gf_TurnAnimationPropertiesOn(libNtve_gf_MainActorofUnit(lp_unit), lp_property);

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

    libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(gf_ActorUnit(ge_ActorID_ActorRaynor)), c_animNameDefault, "Hover End", c_animFlagFullMatch | c_animFlagNonLooping, c_animTimeDefault);
    Wait(0.5, c_timeGame);
    libNtve_gf_SendActorMessageToUnit(gf_ActorUnit(ge_ActorID_ActorHorner), libNtve_gf_AnimBlendTimeApply(0.25));
    Wait(0.5, c_timeReal);
    Wait(1.0, c_timeReal);

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

    CameraApplyInfo(1, CameraInfoFromId(837), 1.25, -1, 10, true);
    Wait(0.5, c_timeReal);
    libNtve_gf_SendActorMessageToUnit(gf_ActorUnit(ge_ActorID_ActorHorner), libNtve_gf_AnimBlendTimeApply(0.25));
    return true;
}

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

    libNtve_gf_SetAnimationCompletion(libNtve_gf_MainActorofUnit(gf_ActorUnit(ge_ActorID_ActorRaynor)), c_animNameDefault, 30.0);
    Wait(0.5, c_timeReal);
    libNtve_gf_SendActorMessageToUnit(gf_ActorUnit(ge_ActorID_ActorRaynor), libNtve_gf_AnimBlendTimeApply(0.25));
    gf_MakeUnitLookAtUnitAndBlinkWithDebugControl(gf_ActorUnit(ge_ActorID_ActorHillMercContact), "InstantHeadOnlySubtle", gf_ActorUnit(ge_ActorID_ActorRaynor), "Ref_Head");
    CameraApplyInfo(1, CameraInfoFromId(198), 0.0, -1, 10, true);

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

            libSwaC_gf_ZS_ArmyCustomEggPlayLight("Far", lp_armyCategory);
        }
        libNtve_gf_SendActorMessageToUnit(lv_eggUnit, libNtve_gf_AnimBlendTimeApply(0.0));
        libNtve_gf_TurnAnimationPropertiesOn(libNtve_gf_MainActorofUnit(lv_eggUnit), "Cover");
        libNtve_gf_SendActorMessageToUnit(lv_eggUnit, "AnimBlendTimeRemove");

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

    }
    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");

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

void lib281DEC45_gf_TurnAnimationPropertiesOnOff (unit lp_unit, string lp_property, bool lp_onOff, fixed lp_blend) {
    // Implementation
    libNtve_gf_SendActorMessageToUnit(lp_unit, libNtve_gf_AnimBlendTimeApply(lp_blend));
    if ((lp_onOff == true)) {
        libNtve_gf_TurnAnimationPropertiesOn(libNtve_gf_MainActorofUnit(lp_unit), lp_property);

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

    // Automatic Variable Declarations
    // Implementation
    libNtve_gf_SendActorMessageToUnit(lp_unit, libNtve_gf_AnimBlendTimeApply(lp_blend));
    if ((lp_onOff == true)) {
        libNtve_gf_TurnAnimationPropertiesOn(libNtve_gf_MainActorofUnit(lp_unit), lp_property);

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

void libNCST_gf_TurnAnimationPropertiesOnOff (unit lp_unit, string lp_property, bool lp_onOff, fixed lp_blend) {
    // Implementation
    libNtve_gf_SendActorMessageToUnit(lp_unit, libNtve_gf_AnimBlendTimeApply(lp_blend));
    if ((lp_onOff == true)) {
        libNtve_gf_TurnAnimationPropertiesOn(libNtve_gf_MainActorofUnit(lp_unit), lp_property);