So I know there is a longer way to do this, however I was wondering if this specific code is not possible? It does not seem to work.
To explain, the ATKDamage behavior is attached to the projectile. I just want it to insta-kill the enemy.
The EnemyHealth is attached to an enemy, and I set the HP variable to 10. If I set it to zero, it kills the enemy right when the scene starts, as expected. It just seems like it's just not working? I see performance fallout too when the projectile hits the enemy, but they do not die. Could be something super simple, or it could be that this approach isn't necessarily going to work. Thanks in advance.