Now About Social Code
summaryrefslogtreecommitdiff
path: root/scripts/dungeon_manager.gd
diff options
context:
space:
mode:
authorLucas Fryzek <lucas.fryzek@fryzekconcepts.com>2024-09-23 19:24:56 +0100
committerLucas Fryzek <lucas.fryzek@fryzekconcepts.com>2024-09-23 19:25:46 +0100
commitb262d5d194036571d0b3adad3c9914ba9dbe0c8b (patch)
tree8b2c97809f05450fa7624c811065f0cb6993b2a6 /scripts/dungeon_manager.gd
parentb62062c72a2354ba06b53706d94d3db53c224f12 (diff)
enemy: Add line of sight to AI to look for player
Diffstat (limited to 'scripts/dungeon_manager.gd')
-rw-r--r--scripts/dungeon_manager.gd4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/dungeon_manager.gd b/scripts/dungeon_manager.gd
index 513fcd6..ec3f5d4 100644
--- a/scripts/dungeon_manager.gd
+++ b/scripts/dungeon_manager.gd
@@ -15,7 +15,9 @@ func create_enemies() -> void:
for i in range(num_enemies):
var enemy = enemy_inst.instantiate()
- enemy.target = $Player
+
+ # Target is controlled through enemy wander AI
+ enemy.target = null
var found_pos = false
while not found_pos: