first_anniversary_godot_jam/scripts/Library/Actions/PlaySound.gd

13 lines
170 B
GDScript3
Raw Normal View History

2024-04-20 14:16:44 +00:00
class_name PlaySound
extends Action
export(NodePath) var audioStreamPlayer
func _ready():
onTrigger()
func onTrigger():
2024-04-20 16:40:59 +00:00
get_node( audioStreamPlayer ).play()
2024-04-20 14:16:44 +00:00