I don't need to test my programs. I have an error-correcting modem.
UE2:U2DispatcherEX (U2)
Contents
This is an auto-generated page and may need human attention. Please remove the {{autogenerated}} tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
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]
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]
Overrides: Actor.PreBeginPlay
Other instance functions[edit]
PlaySoundOnActor[edit]
PlaySoundOnPlayer[edit]
States[edit]
Dispatch[edit]
InitiallyOn[edit]
TriggeredDispatcher[edit]
TriggeredDispatcher.Trigger[edit]
Overrides: Actor.Trigger (global)