Worst-case scenario: the UEd Goblin wipes the map and burns down your house.
UE3:AnimNodePlayCustomAnim (UT3)
From Unreal Wiki, The Unreal Engine Documentation Site
| Object >> AnimNode >> AnimNodeBlendBase >> AnimNodeBlend >> AnimNodePlayCustomAnim |
Contents |
| This is an auto-generated page and may need human attention. Please remove this tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
Gives code control to override an AnimTree branch, with a custom animation. . Normal branch is the normal tree branch (for example Human upper body). . Custom branch must be connected to an AnimNodeSequence. This node can then take over the upper body to play a cutom animation given various parameters.
Copyright 1998-2007 Epic Games, Inc. All Rights Reserved.
[edit] Properties
[edit] bIsPlayingCustomAnim
Type: bool
True, when we're playing a custom animation
[edit] CustomPendingBlendOutTime
Type: float
save blend out time when playing a one shot animation.
[edit] Default values
| Property | Value | ||||
|---|---|---|---|---|---|
| Children[0] |
|
||||
| Children[1] |
|
||||
| NodeName | 'CustomAnim' |
[edit] Functions
[edit] Native functions
[edit] PlayCustomAnim
Play a custom animation. Supports many features, including blending in and out.
Parameters:
- AnimName - Name of animation to play.
- Rate - Rate animation should be played at.
- BlendInTime - Blend duration to play anim.
- BlendOutTime - Time before animation ends (in seconds) to blend out. -1.f means no blend out. 0.f = instant switch, no blend. otherwise it's starting to blend out at AnimDuration - BlendOutTime seconds.
- bLooping - Should the anim loop? (and play forever until told to stop)
- bOverride - play same animation over again only if bOverride is set to true.
Returns:
- PlayBack length of animation.
[edit] PlayCustomAnimByDuration
Play a custom animation. Auto adjusts the animation's rate to match a given duration in seconds. Supports many features, including blending in and out.
Parameters:
- AnimName - Name of animation to play.
- Duration - duration in seconds the animation should be played.
- BlendInTime - Blend duration to play anim.
- BlendOutTime - Time before animation ends (in seconds) to blend out. -1.f means no blend out. 0.f = instant switch, no blend. otherwise it's starting to blend out at AnimDuration - BlendOutTime seconds.
- bLooping - Should the anim loop? (and play forever until told to stop)
- bOverride - play same animation over again only if bOverride is set to true.
[edit] StopCustomAnim
Stop playing a custom animation. Used for blending out of a looping custom animation.
[edit] Other instance functions
[edit] GetCustomAnimNodeSeq
Returns AnimNodeSequence playing the custom animation
[edit] SetActorAnimEndNotification
Set bCauseActorAnimEnd flag
[edit] SetCustomAnim
Set Custom animation.
[edit] SetRootBoneAxisOption
Set custom animation root bone options.
