Play Sound on Event LPK_PlaySoundOnEvent.cs

This component can be added to any object to play a sound upon receiving an event notice.

Suggested use:

Play a sound using a chosen audio emitter.

Examples found in: Project 5

Components
Property Type Description Default Value
Component Properties
Target Audio Sources Array of Objects Object(s) whose emitter will be used to play sound. 0
Volume Variance Min Float Minimum volume for the sound to be played at. The sound volume is played at a random range between this and the Volume Variance Max. 1
Volume Variance Max Float Maximum volume for the sound to be played at. The sound volume is played at a random range between this and the Volume Variance Min. 1
Pitch Variance Min Float Minimum pitch for the sound to be played at. The sound pitch is played at a random range between this and the Pitch Variance Max. 1
Pitch Variance Max Float Maximum pitch for the sound to be played at. The sound pitch is played at a random range between this and the Pitch Variance Min. 1
Cooldown Float Number of seconds to wait until an event can trigger another instance of sound played. 0
Event Receiving Info
Event Trigger LPK Event Object Which event will trigger this component's action. None
Debug Properties
Print Debug Info Boolean Toggle console debug messages. False
Label String Notes for the user about this component. This does nothing to the game or build. None