add info |
fix links |
||
Line 11: | Line 11: | ||
|MaxInterval|Float| The maximum 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. | |RandomPointGenerator|IPointGenerator| a point generator component that is used as the limiter on where random point events can be located. | ||
|Events|{{RootFieldType|SyncList`1|[[Type:SyncDelegate`1|SyncDelegate`1]]<[[Type:Action|Action]]>}}|TypeAdv3=true| Random events that when calling a [[ | |Events|{{RootFieldType|SyncList`1|[[Type:SyncDelegate`1|SyncDelegate`1]]<[[Type:Action|Action]]>}}|TypeAdv3=true| Random events that when calling a [[Sync Delegate]] provide no data to it's arguments. | ||
|PointEvents|{{RootFieldType|SyncList`1|[[Type:SyncDelegate`1|SyncDelegate`1]]<[[Type:Action`1|Action`1]]<[[Type:Float3|Float3]]>>}}|TypeAdv4=true| Random events that when calling a [[ | |PointEvents|{{RootFieldType|SyncList`1|[[Type:SyncDelegate`1|SyncDelegate`1]]<[[Type:Action`1|Action`1]]<[[Type:Float3|Float3]]>>}}|TypeAdv4=true| Random events that when calling a [[Sync Delegate]] provide a [[Type:Float3|Float3]] to it's arguments. | ||
}} | }} | ||
Latest revision as of 15:20, 20 October 2024
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.