Component image
This article or section is a Stub. You can help the Resonite Wiki by expanding it.
Random event generator is a component that is used to generate random events and point events given a minimum and maximum delay between events.
Usage
Name | Type | Description |
---|---|---|
persistent
|
Bool | Determines whether or not this item will be saved to the server. |
UpdateOrder
|
Int | Controls the order in which this component is updated. |
Enabled
|
Bool | Controls whether or not this component is enabled. |
MinInterval
|
Float | The minimum time in seconds before another event is generated |
MaxInterval
|
Float | The maximum time in seconds before another event is generated |
RandomPointGenerator
|
IPointGenerator | a point generator component that is used as the limiter on where random point events can be located. |
Events
|
list of SyncDelegate`1<Action> | Random events that when calling a Sync Delegate provide no data to it's arguments. |
PointEvents
|
list of SyncDelegate`1<Action`1<Float3>> | Random events that when calling a Sync Delegate provide a Float3 to it's arguments. |
Behavior
Generates random events and sends them to the lists of Events
and PointEvents
.
Examples
Can be used with a RandomAudioClipPlayer PlayAtPoint(Float3 point)
sync delegate to play noises randomly at random points from RandomPointGenerator
without using ProtoFlux.