From 21d3893b6b1c1ffb2d9611bce67568e713161b3d Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Sun, 14 Apr 2024 11:28:24 +0700 Subject: =?UTF-8?q?IncreaseSize.gd=20=E2=80=94=20UNFINISHED,=20i=20have=20?= =?UTF-8?q?to=20go?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/AI.gd | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Scripts/AI.gd') diff --git a/Scripts/AI.gd b/Scripts/AI.gd index d5cbcbe..1428c06 100644 --- a/Scripts/AI.gd +++ b/Scripts/AI.gd @@ -2,6 +2,7 @@ extends Node class_name AI @export_group("Values") +@export var max_distance : float @export_group("Scenes") @export var shape_cast_original : ShapeCast2D @@ -34,4 +35,7 @@ func step(alternative : bool = false): if nodes.size() > 0: nodes[0].join_from($"..") else: - step(true) + if !alternative: + step(true) + else: + print("i am softlocked!") -- cgit v1.2.3