Always snap to grid

UE3:GameCrowdBehavior_PlayAnimation (UDK)

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 11:47, 6 November 2009 by (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
UDK Object >> GameCrowdAgentBehavior >> GameCrowdBehavior_PlayAnimation
Package: 
GameFramework


Properties

Property group 'GameCrowdBehavior_PlayAnimation'

AnimationList

Type: array<name>

List of animations to play

bBlendBetweenAnims

Type: bool

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

BlendInTime

Type: float

Time to blend into next animation.

Default value: 0.2

BlendOutTime

Type: float

Time to blend out of animation.

Default value: 0.2

bLookAtPlayer

Type: bool

If true, face player before starting animation.

bLooping

Type: bool

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

bUseRootMotion

Type: bool

Whether to use root motion.

LoopIndex

Type: int

Which animation to loop in AnimationList if bLooping == TRUE

LoopTime

Type: float

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

Default value: -1.0

Internal variables

AnimationIndex

Type: int

Index into animationlist of current animation action

AnimSequence

Type: SeqAct_PlayAgentAnimation

Kismet AnimSequence that spawned this behavior (optional)

CustomActionTarget

Type: Actor

Used by kismet PlayAgentAnimation

Default values

Property Value
bIdleBehavior True

Functions

Native functions

SetSequenceOutput

native function SetSequenceOutput ()

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

Events

FinishedTargetRotation

event FinishedTargetRotation ()

Overrides: GameCrowdAgentBehavior.FinishedTargetRotation

Facing target, so play animation

OnAnimEnd

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

GetBehaviorString

function string GetBehaviorString ()

Overrides: GameCrowdAgentBehavior.GetBehaviorString

Get debug string about agent behavior

InitBehavior

function InitBehavior (GameCrowdAgent Agent)

Overrides: GameCrowdAgentBehavior.InitBehavior

Called when Agent activates this behavior

PlayAgentAnimationNow

function PlayAgentAnimationNow ()

Play the requested animation

StopBehavior

function StopBehavior ()

Overrides: GameCrowdAgentBehavior.StopBehavior

Called when Agent stops this behavior