fix: wretched enemies cleanly disable state machine on death
This commit is contained in:
parent
c241b914f4
commit
c53058fb46
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ script/source = "extends EnemyWretched
|
|||
var is_dead := false
|
||||
|
||||
func on_death() -> void:
|
||||
%StateMachine.process_mode = Node.PROCESS_MODE_DISABLED
|
||||
%StateMachine.switch_to_state(null)
|
||||
%NavigationAgent3D.process_mode = Node.PROCESS_MODE_DISABLED
|
||||
$CollisionShape3D.disabled = true
|
||||
set_movement_direction(Vector2())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue