Files
net-gunner/scripts/one_shot.gd

9 lines
129 B
GDScript

extends AudioStreamPlayer
func _ready() -> void:
$Timer.start(stream.get_length())
func _on_timeout() -> void:
queue_free()