starting work on enemy hearing

This commit is contained in:
derek
2025-04-29 11:46:55 -05:00
parent a287710a7b
commit 6124a370b4
8 changed files with 31 additions and 2 deletions

View File

@@ -40,6 +40,10 @@ func move_target_adj():
var position = move_target()
return Vector3(position.x,enemy.global_position.y,position.z)
func search_for_suspicious_sounds():
if enemy.points_of_interest != [] and enemy.points_of_interest != null:
Transitioned.emit(self,"search")
func rotate_to_face2D(object,target,delta,turn_speed):
#to allow both nodes and positions to be passed to this function, test the target and use Vector3 coords
var target_transformed