enemy stun is working now, needs timeout

This commit is contained in:
Derek
2025-04-22 08:26:14 -05:00
parent 362b0a5708
commit 3a58b2f49d
4 changed files with 39 additions and 14 deletions

View File

@@ -45,5 +45,6 @@ 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 Enemy:
body.stun()
if body.is_in_group("enemy"):
if body.has_method("stun"):
body.stun()