rudimentary search function. not working right yet
This commit is contained in:
@@ -25,6 +25,10 @@ func update_waypoint():
|
||||
enemy.nav_agent.set_target_position(enemy.point_of_interest)
|
||||
|
||||
func Update(delta):
|
||||
if enemy.point_of_interest != null:
|
||||
if !enemy.is_player_visible():
|
||||
Transitioned.emit(self,"search")
|
||||
|
||||
if heartbeat > 0:
|
||||
heartbeat -= delta
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user