Worst-case scenario: the UEd Goblin wipes the map and burns down your house.

UE2:DialogSession (U2XMP)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
U2XMP Object >> Actor >> Dialog >> DialogSession
Package: 
U2Dialog

DialogSession.uc Created By: Mike Baldwin Created On: 2/23/2001 $Author: Mbaldwin $ $Date: 1/07/03 12:22p $ $Revision: 94 $

Constants[edit]

NoInterruptTimeFinishedTimer[edit]

Value: 'NoInterruptTimeFinished'


AudioFinishedTimer[edit]

Value: 'AudioFinished'


Properties[edit]

bAudioPlaying[edit]

Type: bool

is someone currently talking?

bCantInterrupt[edit]

Type: bool

cant butt in yet

bInitialized[edit]

Type: bool

all npc's are ready and dialog can begin

bSessionFinished[edit]

Type: bool

session is done and is waiting deletion

CurNode[edit]

Type: DialogNode

which node is being spoken?

DControllers[edit]

Type: array<DialogController>

participants (dialog controllers)

DE[edit]

Type: DialogEngine

reference to dialog singleton

DialogStatus[edit]

Type: Dialog.EDialogStatus

currently status of the dialog session

ExitEnables[edit]

Type: array<Dialog.NodeEnableInfo>

Nodes to enable when session is over

ExitEvents[edit]

Type: array<Dialog.ExitEventInfo>

Event to trigger when session is over

Interrupter[edit]

Type: Actor

speaker who's doing the interrupting

InterruptTarget[edit]

Type: Actor


SoundRadius[edit]

Type: float


SoundVolume[edit]

Type: float

volume to use for PlaySound / PlayVoice

SpeakingDC[edit]

Type: DialogController

current speaker

TalkRadius[edit]

Type: float

maximum distance from center an actor can go before they'll be kicked from the session

TimeElapsed[edit]

Type: float

time since the audio file began

Tone[edit]

Type: Dialog.EDialogTone

tone set by the CurNode (DialogNode.ChangeTone)

Default value: DIALOGTONE_Formal

Topic[edit]

Type: name

for sessions created for a specific topic

TopicEnabled[edit]

Type: bool

cached enabled-ness of the topic tree

Trees[edit]

Type: array<DialogTree>

set of dialog trees available for this session

Trigger[edit]

Type: DialogTrigger

for sessions created by a DialogTrigger

WaitingActor[edit]

Type: Actor


Functions[edit]

Native functions[edit]

AddDialog[edit]

native function AddDialog (DialogTree NewTree)


Contains[edit]

native function bool Contains (string Speaker)


NodeCompleted[edit]

native function NodeCompleted ()


TimeSinceLastSpoken[edit]

native function float TimeSinceLastSpoken ()


WhoIsSpeaking[edit]

native function string WhoIsSpeaking ()


Events[edit]

AudioFinished[edit]

event AudioFinished ()


Destroyed[edit]

event Destroyed ()

Overrides: Actor.Destroyed


NotifyDialogAborted[edit]

event NotifyDialogAborted (Actor AbortingActor)


NotifyDialogScriptedAbort[edit]

event NotifyDialogScriptedAbort (Actor ScriptedActor)


NotifyDialogWalkedAway[edit]

event NotifyDialogWalkedAway (Actor LeavingActor)


NotifyGameSpeedChanged[edit]

event NotifyGameSpeedChanged (float OldGameSpeed, float NewGameSpeed)


NotifyInterruption[edit]

event NotifyInterruption (Actor NewInterrupter, Actor NewInterruptTarget, bool bInterrupterTalking)


Talk[edit]

event Talk ()


TryAbortDialog[edit]

event bool TryAbortDialog ()


TryInterruptRequestDialog[edit]

event bool TryInterruptRequestDialog ()


TryInterruptResponseDialog[edit]

event bool TryInterruptResponseDialog ()


TryInterruptWalkAwayDialog[edit]

event bool TryInterruptWalkAwayDialog ()


TryNormalDialog[edit]

event bool TryNormalDialog ()


TryResumeDialog[edit]

event bool TryResumeDialog ()


Other instance functions[edit]

See DialogSession instance functions.