C#C
C#2y ago
Jëskłer

Damage system isn't working

This time I've got a far more precise issue, I'm trying to get this damage system to work however when I implement it the cycle in the script with the bullet goes through properly and the bullet is removed just fine, however the health script isn't working properly, despite having the health set to 3 and the damage set to 1, the loop always goes around and thinks that 3 damage was delievered giving the "You're dead" debug.log, any help on fixing this issue?
Screenshot_2024-04-17_154249.png
Screenshot_2024-04-17_154409.png
Was this page helpful?