This commit is contained in:
derek
2025-04-30 13:43:58 -05:00
parent 30f5e19123
commit 4ca91fc7b5

View File

@@ -13,6 +13,7 @@ func Enter():
get_new_wander_point()
func Update(delta):
#on timeout change scan direction
if scan_timer > 0:
scan_timer -= delta
else:
@@ -21,11 +22,13 @@ func Update(delta):
func Physics_Update(delta):
#draw target for debug purposes
debug_marker(move_target)
#if navigation is finished get new point, otherwise continue on path
if enemy.nav_agent.is_navigation_finished():
get_new_wander_point()
else:
move_to_nav_point(delta)
#do turret scan
turret_scan_look(enemy.nav_agent.get_next_path_position(),scan_direction,delta)