Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
326 B
2
Indexable
Never
extends RigidBody3D

@onready var destroy_timer: Timer = $DestroyTimer
@export var hit_sound: AudioStreamPlayer3D


func _on_body_entered(body: Node) -> void:
	destroy_timer.start()
	if body is Monster:
		body.recieve_damage(GameManager.get_weapon_damage())
		hit_sound.play()


func _on_timer_timeout() -> void:
	queue_free()
Leave a Comment