I'm a doctor, not a mechanic

UE3:GameCrowdBehavior_RunFromPanic (UDK)

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


Properties

PanicFocus

Type: Actor

Actor who caused panic - if set, flee this actor

Default values

Property Value
bIsPanicked True
bIsViralBehavior True
MaxPlayerDistance 20000.0

Functions

Events

PropagateViralBehaviorTo

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

ActivatedBy

function ActivatedBy (Actor NewActionTarget)

Overrides: GameCrowdAgentBehavior.ActivatedBy

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

AllowBehaviorAt

function bool AllowBehaviorAt (GameCrowdDestination Destination)

Overrides: GameCrowdAgentBehavior.AllowBehaviorAt

return true if get kismet or new behavior from this destination

AllowThisDestination

function bool AllowThisDestination (GameCrowdDestination Destination)

Overrides: GameCrowdAgentBehavior.AllowThisDestination

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

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

StopBehavior

function StopBehavior ()

Overrides: GameCrowdAgentBehavior.StopBehavior

Called when Agent stops this behavior