My program doesn't have bugs. It just develops random features.

UE2:U2DispatcherEX (U2)

From Unreal Wiki, The Unreal Engine Documentation Site
(Redirected from UE2:DispatchEvent (U2))
Jump to: navigation, search
U2 Object >> Actor >> Triggers >> U2DispatcherEX
Package: 
U2
This class in other games:
U2XMP

U2DispatcherEX.uc Created By: Matthias Worch Created On: 12/20/02 $Author: Mworch $ $Date: 12/12/02 23:36 $ $Revision: 1 $ This is a much improved Dispatcher class. Combines old Dispatcher and SoundDispatcher functionality and TriggerOnceOnly support (to each element). bPlay(Sound)OnPlayer also finally works. How to use: Should be self-explanatory. Note that you control the pitch, volume, radius etc. of each sound by changing the values of the target actor that actually plays the sound. bTriggerNPCs is still set in the Trigger tab and is valid for the entire dispatcher.

Properties[edit]

Property group 'U2DispatcherEX'[edit]

bLoop[edit]

Type: bool

start over

EventList[edit]

Type: array<DispatchEvent>


Internal variables[edit]

i[edit]

Type: int

internal dispatcher counter

PCCache[edit]

Type: PlayerController


SoundSourceCache[edit]

Type: array<Actor>


Default values[edit]

Property Value
InitialState '
Texture Texture'Legend.S_Dispatcher'

Structs[edit]

DispatchEvent[edit]

Modifiers: native

float PreDelay 
relative delay before anything in this element happens
bool bRandomizeDelay 
generate random delay between 0 and PreDelay
name Event 
event to generate
bool bOnceOnly 
event/sound in this element only happen once. Remember that you're disabling the Delay, too!
Sound Sound 
sound to play (ignore SoundTableTag)
name SoundSourceTag 
object name of actor that plays the sound (if 'none' play on self )
bool bPlayOnPlayer 
play sound on player?
bool bDisabled 
to keep track of bOnceOnly elements

Functions[edit]

Events[edit]

PreBeginPlay[edit]

event PreBeginPlay ()

Overrides: Actor.PreBeginPlay


Other instance functions[edit]

PlaySoundOnActor[edit]

function PlaySoundOnActor (Sound Sound, name Tag)


PlaySoundOnPlayer[edit]

function PlaySoundOnPlayer (Sound Sound)


States[edit]

Dispatch[edit]

Ignores: Trigger

InitiallyOn[edit]

TriggeredDispatcher[edit]

TriggeredDispatcher.Trigger[edit]

event Trigger (Actor Other, Pawn EventInstigator)

Overrides: Actor.Trigger (global)