Now About Social Code
summaryrefslogtreecommitdiff
path: root/scripts/enemy.gd
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/enemy.gd')
-rw-r--r--scripts/enemy.gd2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/enemy.gd b/scripts/enemy.gd
index 6be60c7..1c4c063 100644
--- a/scripts/enemy.gd
+++ b/scripts/enemy.gd
@@ -62,6 +62,8 @@ func chase_nav_mesh(delta: float):
var next_location = nav_agent.get_next_path_position()
var new_velocity = (next_location - current_location).normalized() * speed
+ #print("Target is ", next_location)
+
# We only want to navigate on XZ plane
new_velocity.y = 0