User:Crusha/UltimateMappingTools/RandomEventGate

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to navigation Jump to 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().