npcs and enemies now inherit from character state

This commit is contained in:
derek
2025-05-12 14:05:18 -05:00
parent 971ec93e35
commit 4c98bca83b
9 changed files with 2421 additions and 182 deletions

View File

@@ -27,11 +27,8 @@ func Update(delta):
Transitioned.emit(self,"idle")
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():
if character.nav_agent.is_navigation_finished():
if has_points_to_investigate():
get_new_point_of_interest()
else: