starting work on enemy hearing
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user