I'm a doctor, not a mechanic

UE2:U2DispatcherEX (U2)

From Unreal Wiki, The Unreal Engine Documentation Site
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

Property group 'U2DispatcherEX'

bLoop

Type: bool

start over

EventList

Type: array<DispatchEvent>


Internal variables

i

Type: int

internal dispatcher counter

PCCache

Type: PlayerController


SoundSourceCache

Type: array<Actor>


Default values

Property Value
InitialState '
Texture Texture'Legend.S_Dispatcher'

Structs

DispatchEvent

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

Events

PreBeginPlay

event PreBeginPlay ()

Overrides: Actor.PreBeginPlay


Other instance functions

PlaySoundOnActor

function PlaySoundOnActor (Sound Sound, name Tag)


PlaySoundOnPlayer

function PlaySoundOnPlayer (Sound Sound)


States

Dispatch

Ignores: Trigger

InitiallyOn

TriggeredDispatcher

TriggeredDispatcher.Trigger

event Trigger (Actor Other, Pawn EventInstigator)

Overrides: Actor.Trigger (global)