diff options
Diffstat (limited to 'Scripts/AI.gd')
-rw-r--r-- | Scripts/AI.gd | 6 |
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!") |