summaryrefslogtreecommitdiff
path: root/Scripts/AI.gd
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2024-04-14 11:28:24 +0700
committeraltaf-creator <dev@altafcreator.com>2024-04-14 11:28:24 +0700
commit21d3893b6b1c1ffb2d9611bce67568e713161b3d (patch)
tree1360007e7b378e84be3c7d9d596bdcce7c0f8a48 /Scripts/AI.gd
parentb97ebd793eb17032f3929f307dfe644b17714619 (diff)
IncreaseSize.gd — UNFINISHED, i have to go
Diffstat (limited to 'Scripts/AI.gd')
-rw-r--r--Scripts/AI.gd6
1 files changed, 5 insertions, 1 deletions
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!")