Files
tgcc/core/ai/framework/patrol_state.gd

11 lines
229 B
GDScript

extends State
func enter() -> void:
super.enter()
run_animation()
agent.navigate_to_random_point()
func physics_update(_delta) -> void:
if agent.nav_agent.is_navigation_finished():
transitioned.emit(self, next_state_id)