|
heres my script the enemy is destroyed at the start instead of when it has 0 health, also i have another script which sends ApplyDamage when the enemy gets hit
(comments are locked)
|
|
Try getting rid of the semi colon after the if statement. oh thats it thanks
Nov 22 '11 at 04:16 AM
sam32x
(comments are locked)
|

If damage is only applied via the ApplyDamage function, you can just check the health there instead of using Update().