Skip to content

bunnytrack/RandomEventTriggerEnhanced

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

RandomEventTriggerEnhanced

An enhanced version of RandomEventTrigger. Where the original triggers one random event from a pool, this version lets you trigger multiple random events with optional delays between them.

Properties

Property Type Description
OutEvents[16] name Pool of events to choose from. Empty slots are ignored.
OutDelays[16] float Delay (in seconds) after firing the corresponding event. Acts as the gap before the next event fires.
NumEventsToTrigger int How many random events to fire each time. Set to 0 to fire all. Defaults to 1.

Example usage

Set up 5 events with NumEventsToTrigger=3:

Slot OutEvents OutDelays
0 LightsOn 0.0
1 PlaySound 1.5
2 SpawnMonster 0.5
3 OpenDoor 2.0
4 Earthquake 0.0

Each activation of the trigger picks 3 of the 5 events at random. If it picks SpawnMonster, OpenDoor, LightsOn (in that order): SpawnMonster fires immediately, then waits 0.5s, then OpenDoor fires, then waits 2.0s, then LightsOn fires.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors