mirror of
https://github.com/thecatontheceiling/buckshotroulette-decomp.git
synced 2024-11-29 08:57:16 +00:00
10 lines
267 B
GDScript3
10 lines
267 B
GDScript3
|
class_name ShellDropManager extends Node
|
||
|
|
||
|
@export var speaker : AudioStreamPlayer2D
|
||
|
@export var soundArray : Array[AudioStream]
|
||
|
|
||
|
func PlayShellDropSound():
|
||
|
var randindex = randi_range(0, soundArray.size() - 1)
|
||
|
speaker.stream = soundArray[randindex]
|
||
|
speaker.play()
|