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

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

NoInterruptTimeFinishedTimer

Value: 'NoInterruptTimeFinished'


AudioFinishedTimer

Value: 'AudioFinished'


Properties

bAudioPlaying

Type: bool

is someone currently talking?

bCantInterrupt

Type: bool

cant butt in yet

bInitialized

Type: bool

all npc's are ready and dialog can begin

bSessionFinished

Type: bool

session is done and is waiting deletion

CurNode

Type: DialogNode

which node is being spoken?

DControllers

Type: array<DialogController>

participants (dialog controllers)

DE

Type: DialogEngine

reference to dialog singleton

DialogStatus

Type: Dialog.EDialogStatus

currently status of the dialog session

ExitEnables

Type: array<Dialog.NodeEnableInfo>

Nodes to enable when session is over

ExitEvents

Type: array<Dialog.ExitEventInfo>

Event to trigger when session is over

Interrupter

Type: Actor

speaker who's doing the interrupting

InterruptTarget

Type: Actor


SoundRadius

Type: float


SoundVolume

Type: float

volume to use for PlaySound / PlayVoice

SpeakingDC

Type: DialogController

current speaker

TalkRadius

Type: float

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

TimeElapsed

Type: float

time since the audio file began

Tone

Type: Dialog.EDialogTone

tone set by the CurNode (DialogNode.ChangeTone)

Default value: DIALOGTONE_Formal

Topic

Type: name

for sessions created for a specific topic

TopicEnabled

Type: bool

cached enabled-ness of the topic tree

Trees

Type: array<DialogTree>

set of dialog trees available for this session

Trigger

Type: DialogTrigger

for sessions created by a DialogTrigger

WaitingActor

Type: Actor


Functions

Native functions

AddDialog

native function AddDialog (DialogTree NewTree)


Contains

native function bool Contains (string Speaker)


NodeCompleted

native function NodeCompleted ()


TimeSinceLastSpoken

native function float TimeSinceLastSpoken ()


WhoIsSpeaking

native function string WhoIsSpeaking ()


Events

AudioFinished

event AudioFinished ()


Destroyed

event Destroyed ()

Overrides: Actor.Destroyed


NotifyDialogAborted

event NotifyDialogAborted (Actor AbortingActor)


NotifyDialogScriptedAbort

event NotifyDialogScriptedAbort (Actor ScriptedActor)


NotifyDialogWalkedAway

event NotifyDialogWalkedAway (Actor LeavingActor)


NotifyGameSpeedChanged

event NotifyGameSpeedChanged (float OldGameSpeed, float NewGameSpeed)


NotifyInterruption

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


Talk

event Talk ()


TryAbortDialog

event bool TryAbortDialog ()


TryInterruptRequestDialog

event bool TryInterruptRequestDialog ()


TryInterruptResponseDialog

event bool TryInterruptResponseDialog ()


TryInterruptWalkAwayDialog

event bool TryInterruptWalkAwayDialog ()


TryNormalDialog

event bool TryNormalDialog ()


TryResumeDialog

event bool TryResumeDialog ()


Other instance functions

See DialogSession instance functions.