There is no spoon
User:Crusha/UltimateMappingTools/RandomEventGate
From Unreal Wiki, The Unreal Engine Documentation Site
by Crusha K. Rool
- 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
Overrides: Actor.Trigger
Some simple FRand() magic.
Untrigger
Overrides: Actor.UnTrigger
More FRand().