From 582a39992c3684ca1f16e91f603af8cd3110f533 Mon Sep 17 00:00:00 2001 From: Mathilde Grapin Date: Sat, 1 Jul 2023 18:56:45 +0200 Subject: [PATCH] Fix enemy not idling --- scripts/enemy/behavior_tree/move_to_destination_action.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/enemy/behavior_tree/move_to_destination_action.gd b/scripts/enemy/behavior_tree/move_to_destination_action.gd index 2fa1911..d362af4 100644 --- a/scripts/enemy/behavior_tree/move_to_destination_action.gd +++ b/scripts/enemy/behavior_tree/move_to_destination_action.gd @@ -11,7 +11,7 @@ func tick(actor: Node, blackboard: Blackboard): actor.move_to(destination) if actor.position == destination: - actor.next_destination == null + actor.next_destination = null return SUCCESS return RUNNING