SlimeoosOdyssey/godot/slime_kill_box.gd

8 lines
121 B
GDScript3
Raw Normal View History

2023-08-20 15:00:54 -06:00
extends Area3D
func _on_body_entered(body):
2023-08-20 16:58:05 -06:00
if "is_killable" in body:
2023-08-20 15:00:54 -06:00
body.queue_free()
$AudioStreamPlayer.play()