class_name SkillsComponent extends Node var player: Player var area: Area3D func _ready(): player = owner area = %MeleeArea player.skill_used.connect(use_skill) func use_skill(_slot: int): await get_tree().create_timer(0.7).timeout area.monitoring = true await get_tree().create_timer(0.1).timeout area.monitoring = false