Cogito, ergo sum

UE3:GameCrowdDestinationQueuePoint (UDK)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UDK Object >> Actor >> GameCrowdInteractionPoint >> GameCrowdDestinationQueuePoint
Package: 
GameFramework

Where crowd agent is going. Destinations can kill agents that reach them or route them to another destination

Properties

Property group 'GameCrowdDestinationQueuePoint'

AverageReactionTime

Type: float

Average pause time before agent reacts to queue movement

Default value: 0.7

NextQueuePosition

Type: GameCrowdDestinationQueuePoint

Position behind this one in line

Internal variables

bClearingQueue

Type: bool

Prevent ClearQueue() reentry

bPendingAdvance

Type: bool

True if queued agent is still at this position, but about to advance

PreviousQueuePosition

Type: GameCrowdInteractionPoint

Position before this one in line

QueueBehaviorClass

Type: class<GameCrowdBehavior_WaitInQueue>

Queue behavior used by this queue point

Default value: Class'GameFramework.GameCrowdBehavior_WaitInQueue'

QueuedAgent

Type: GameCrowdAgent

Agent currently occupying this queue position

QueueDestination

Type: GameCrowdDestination

Modifiers: transient

Which destination this queue is part of the line for. Used only for queue validation during error checking.

Subobjects

CollisionCylinder

Class: Engine.CylinderComponent

Inherits from: GameCrowdInteractionPoint.CollisionCylinder

Property Value
CollisionRadius 100.0
ReplacementPrimitive None

Sprite

Class: Engine.SpriteComponent

Inherits from: GameCrowdInteractionPoint.Sprite

Property Value
ReplacementPrimitive None

Functions

Native functions

QueueReachedBy

native function bool QueueReachedBy (GameCrowdAgent Agent, Object.Vector TestPosition)

Returns true if agent at TestPosition is considered to have reached this queue point

Events

ReachedDestination

event ReachedDestination (GameCrowdAgent Agent)

Called after Agent reaches this queue position

Parameters:

  • Agent - is the crowd agent that just reached this queue position

Other instance functions

ActuallyAdvance

private function ActuallyAdvance ()

Actually advance the customer now

AddCustomer

function AddCustomer (GameCrowdAgent NewCustomer, GameCrowdInteractionPoint PreviousPosition)

Add customer to queue

AdvanceCustomerTo

function AdvanceCustomerTo (GameCrowdInteractionPoint FrontPosition)

Advance customer to next position in line, with a reaction time delay

ClearQueue

function ClearQueue (GameCrowdAgent OldCustomer)

Clear OldCustomer from this queue position

Advance any customers in line

HasCustomer

function bool HasCustomer ()


HasSpace

function bool HasSpace ()

Returns true if this queue has space