feat: add initial People Playground mod development kit

This commit is contained in:
2026-01-06 06:35:51 +03:00
parent b89c805060
commit b4c22a7c63
1095 changed files with 40281 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
URL: https://wiki.studiominus.nl/internalReference/RandomSoundBehaviour.html
Title: People Playground Modding - RandomSoundBehaviour
==================================================
public class RandomSoundBehaviour
Inherits MonoBehaviour
Can play sounds picked randomly from the Clips array.NOTE: Just use the PlayRandomClipBehaviour instead. This class is redundant (but still functional)
Fields
public AudioClip[] Clips
Clips to pick from
public AudioSource AudioSource
Optional audio source. If this is null, the sound will be played using PhysicalBehaviour.PlayClipOnce(AudioClip) if available. Otherwise, no sound is played.
public bool PlayOnStart
A random sound will be played on start if this is set to true
Methods
public void PlayClip()
Play a random clip from Clips. If Clips is null or empty, no sound will be played. If AudioSource is null, this will fall back to the PhysicalBehaviour if available. If none of those are available, no sound is played.Also won't do anything if the component is not enabled