I search for solutions in this order: Past Code, Unreal Source, Wiki, BUF, groups.yahoo, google, screaming at monitor. – RegularX

UE3:GameCrowdBehavior_RunFromPanic (UDK)

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


Properties[edit]

PanicFocus[edit]

Type: Actor

Actor who caused panic - if set, flee this actor

Default values[edit]

Property Value
bIsPanicked True
bIsViralBehavior True
MaxPlayerDistance 20000.0

Functions[edit]

Events[edit]

PropagateViralBehaviorTo[edit]

event PropagateViralBehaviorTo (GameCrowdAgent OtherAgent)

Overrides: GameCrowdAgentBehavior.PropagateViralBehaviorTo

When two agents encounter each other, and one has a viral behavior and the other doesn't, the viral behavior is called to have a chance to propagate itself to the uninfected OtherAgent.

Other instance functions[edit]

ActivatedBy[edit]

function ActivatedBy (Actor NewActionTarget)

Overrides: GameCrowdAgentBehavior.ActivatedBy

Called if agent wants to provide an action target to its behavior.

AllowBehaviorAt[edit]

function bool AllowBehaviorAt (GameCrowdDestination Destination)

Overrides: GameCrowdAgentBehavior.AllowBehaviorAt

return true if get kismet or new behavior from this destination

AllowThisDestination[edit]

function bool AllowThisDestination (GameCrowdDestination Destination)

Overrides: GameCrowdAgentBehavior.AllowThisDestination

Return true if agent is allowed to go to destination while panicked

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

StopBehavior[edit]

function StopBehavior ()

Overrides: GameCrowdAgentBehavior.StopBehavior

Called when Agent stops this behavior