fixed attack in state machine

This commit is contained in:
Derek
2025-04-21 22:58:54 -05:00
parent 18398e8d4e
commit 362b0a5708
8 changed files with 54 additions and 14 deletions

View File

@@ -45,10 +45,5 @@ func explode():
body.recoil.add_recoil(Vector3(1,.1,.1),10,10)
if body.has_method("hit") and !body.is_in_group("player"):
body.hit(1)
if body.is_in_group("enemy"):
body.knocked = true
body.stunned = true
print("knocked")
body.knocked_timer.start()
body.stunned_timer.start()
body.velocity += blast_velocity
if body is Enemy:
body.stun()