feat: add initial People Playground mod development kit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
URL: https://wiki.studiominus.nl/internalReference/RandomEventBehaviour.html
|
||||
Title: People Playground Modding - RandomEventBehaviour
|
||||
==================================================
|
||||
|
||||
public class RandomEventBehaviour
|
||||
Inherits MonoBehaviour
|
||||
Plays the given events all at once based on a chance per second
|
||||
Nested types
|
||||
RandomEventBehaviour.RandomEvent
|
||||
Fields
|
||||
public List<RandomEvent> Events
|
||||
[SkipSerialisation]
|
||||
The events to invoke
|
||||
|
||||
public float ChancePerSecond
|
||||
[SkipSerialisation]
|
||||
The chance per second from 0 to 1. Note that the events can be triggered several times per second still.
|
||||
|
||||
public float Cooldown
|
||||
[SkipSerialisation]
|
||||
Cooldown time in seconds. This determines how long to wait after an invocation before a new event can be dispatched
|
||||
Reference in New Issue
Block a user