sound_player
![code/datums/components/sound_player.dm 6](git.png)
Sound Player component
Component that will play a sound upon receiving some signal
Vars | |
sounds | The list of sounds played, picked randomly. |
---|---|
uses | Uses left before the sound player deletes itself. If set to a negative number that will mean infinite uses. |
volume | Volume of the sound when played |
Procs | |
play_sound | Attempt to play the sound on parent |
Var Details
sounds
![code/datums/components/sound_player.dm 10](git.png)
The list of sounds played, picked randomly.
uses
![code/datums/components/sound_player.dm 14](git.png)
Uses left before the sound player deletes itself. If set to a negative number that will mean infinite uses.
volume
![code/datums/components/sound_player.dm 8](git.png)
Volume of the sound when played
Proc Details
play_sound
Attempt to play the sound on parent
If out of uses, will qdel itself.