fix: state machines now handle being disabled
This commit is contained in:
parent
707c38894a
commit
5d0ae90fbc
3 changed files with 19 additions and 1 deletions
|
|
@ -6,7 +6,8 @@
|
|||
script/source = "extends EnemyWretched
|
||||
|
||||
func _on_health_status_death() -> void:
|
||||
%StateMachine.set_process(false)
|
||||
%StateMachine.process_mode = Node.PROCESS_MODE_DISABLED
|
||||
%NavigationAgent3D.process_mode = Node.PROCESS_MODE_DISABLED
|
||||
$wretched/AnimationPlayer.play(\"death\")
|
||||
$CollisionShape3D.disabled = true
|
||||
set_movement_direction(Vector2())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue