The three virtues of a programmer: Laziness, Impatience, and Hubris. – Larry Wall

User:Crusha/UltimateMappingTools/RandomEventGate

From Unreal Wiki, The Unreal Engine Documentation Site
< User:Crusha‎ | UltimateMappingTools
Revision as of 07:50, 13 October 2011 by Crusha (Talk | contribs) (First revision of page. Checked for correctness.)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

by Crusha K. Rool

UT2004 Object >> Actor >> Triggers >> EventGate >> RandomEventGate (custom)
Package: 
UltimateMappingTools

Triggers the next Event with a probability that can be defined by the mapper. You can also set an alternative Event that is used instead, if the other one is not chosen.

Properties

Property group 'Events'

AlternativeEvent

Type: name

Event to trigger in other case.

Property group 'RandomEventGate'

TriggerProbability

Type: float

Value between 0 and 100. How likely it is to trigger the regular event. Otherwise the AlternativeEvent will be triggered.

UnTriggerProbability

Type: float

Value between 0 and 100. How likely it is to untrigger the regular event. Otherwise the AlternativeEvent will be untriggered.

Events

BeginPlay

event BeginPlay ()

Overrides: Actor.BeginPlay

Checking if it actually makes sense to use this Actor.

Trigger

event Trigger (Actor Other, Pawn EventInstigator)

Overrides: Actor.Trigger

Some simple FRand() magic.

Untrigger

event Untrigger (Actor Other, Pawn EventInstigator)

Overrides: Actor.UnTrigger

More FRand().