17 lines
314 B
GDScript

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