prototype vibe
This commit is contained in:
@@ -14,6 +14,9 @@ func _process(delta: float) -> void:
|
||||
|
||||
func _on_target_requested(_player: Node, target: Node3D) -> void:
|
||||
PlayerData.set_target(target)
|
||||
if target and (target.is_in_group("enemies") or target.is_in_group("portals")):
|
||||
PlayerData.in_combat = true
|
||||
PlayerData.combat_timer = PlayerData.combat_timeout
|
||||
|
||||
func _on_entity_died(entity: Node) -> void:
|
||||
if entity == PlayerData.target:
|
||||
|
||||
Reference in New Issue
Block a user