class_name SkillsComponent extends Node var player: Player func _ready(): player = owner player.attacked.connect(attack) func attack(): var area := %MeleeArea as Area3D await get_tree().create_timer(0.5).timeout area.monitoring = true await get_tree().create_timer(0.1).timeout area.monitoring = false