# Unload Animation for Unit Type
Grammar — Unload animation animation for unit type unitType
Flags —Native
|Action
Unloads an animation for a unit. Note: This is a specialized action that generally relates to storymode models. It will remove additional animation sets that have been loaded to the model through triggers.
# Arguments
string
<gamelink::Unit> — Unit Typestring
<filepath> — Animation
Returns — void
native void UnitTypeAnimationUnload(
string inUnitType,
string animPath,
);
# 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
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:6709
if ((lv_animOld != lv_animNew)) {
if ((lv_animOld != null)) {
UnitTypeAnimationUnload(UnitGetType(gf_ActorUnit(lp_actor)), lv_animOld);
TriggerDebugOutput(1, (StringExternal("Param/Value/D4A752FC") + StringToText(lv_animOld) + StringExternal("Param/Value/75FB0D17") + gf_ActorName(lp_actor)), false);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:6709
if ((lv_animOld != lv_animNew)) {
if ((lv_animOld != null)) {
UnitTypeAnimationUnload(UnitGetType(gf_ActorUnit(lp_actor)), lv_animOld);
TriggerDebugOutput(1, (StringExternal("Param/Value/D4A752FC") + StringToText(lv_animOld) + StringExternal("Param/Value/75FB0D17") + gf_ActorName(lp_actor)), false);
}