Always snap to grid

UE3:GameCrowdBehavior_PlayAnimation (UDK)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UDK Object >> GameCrowdAgentBehavior >> GameCrowdBehavior_PlayAnimation
Package: 
GameFramework


Properties[edit]

Property group 'GameCrowdBehavior_PlayAnimation'[edit]

AnimationList[edit]

Type: array<name>

List of animations to play

bBlendBetweenAnims[edit]

Type: bool

Whether should blend between animations in the list. Set True if they don't match at start/end

BlendInTime[edit]

Type: float

Time to blend into next animation.

Default value: 0.2

BlendOutTime[edit]

Type: float

Time to blend out of animation.

Default value: 0.2

bLookAtPlayer[edit]

Type: bool

If true, face player before starting animation.

bLooping[edit]

Type: bool

If true, loop the animation in the list specified by LoopIndex.

bUseRootMotion[edit]

Type: bool

Whether to use root motion.

LoopIndex[edit]

Type: int

Which animation to loop in AnimationList if bLooping == TRUE

LoopTime[edit]

Type: float

How long to loop the animation if bLooping == TRUE, -1.f == infinite

Default value: -1.0

Internal variables[edit]

AnimationIndex[edit]

Type: int

Index into animationlist of current animation action

AnimSequence[edit]

Type: SeqAct_PlayAgentAnimation

Kismet AnimSequence that spawned this behavior (optional)

CustomActionTarget[edit]

Type: Actor

Used by kismet PlayAgentAnimation

Default values[edit]

Property Value
bIdleBehavior True

Functions[edit]

Native functions[edit]

SetSequenceOutput[edit]

native function SetSequenceOutput ()

Set the "Out Agent" output of the current sequence to be MyAgent.

Events[edit]

FinishedTargetRotation[edit]

event FinishedTargetRotation ()

Overrides: GameCrowdAgentBehavior.FinishedTargetRotation

Facing target, so play animation

OnAnimEnd[edit]

event OnAnimEnd (AnimNodeSequence SeqNode, float PlayedTime, float ExcessTime)

Overrides: GameCrowdAgentBehavior.OnAnimEnd

When an animation ends, play the next animation in the list.

If done with list, if associated with a sequence, trigger its output.

Other instance functions[edit]

GetBehaviorString[edit]

function string GetBehaviorString ()

Overrides: GameCrowdAgentBehavior.GetBehaviorString

Get debug string about agent behavior

InitBehavior[edit]

function InitBehavior (GameCrowdAgent Agent)

Overrides: GameCrowdAgentBehavior.InitBehavior

Called when Agent activates this behavior

PlayAgentAnimationNow[edit]

function PlayAgentAnimationNow ()

Play the requested animation

StopBehavior[edit]

function StopBehavior ()

Overrides: GameCrowdAgentBehavior.StopBehavior

Called when Agent stops this behavior