ft: predator mostly done
This commit is contained in:
@@ -8,7 +8,7 @@ func enter(previous_state_path: String, data := {}) -> void:
|
||||
threat = data["threat"]
|
||||
else:
|
||||
# default behaviour; do nothing
|
||||
threat = owner
|
||||
finished.emit(owner.fsm.States.IDLE, {})
|
||||
|
||||
func physics_update(_delta: float) -> void:
|
||||
if owner.position.distance_to(threat.position) > threshold or threat == owner:
|
||||
|
||||
Reference in New Issue
Block a user