I have a code which applies damage on pressing " / " key and a conditional loop set up to register when the current health variable reaches 0. The less than or equal too node only returns “true” when health current is less than 0. Why is this?
Are you really sure that you get to the point where the health is 0? Or by pressing “/” you just get a point under 0?
Can you post a screen of your log where health reaches 0?
You can test by getting floor value before making comparison. Drag health Content node and find “floor” node and then use its output as input to your conditional statement. If it is the problem with float then it should work this way.
And “<=” node will be comparing two Int values now so make sure to change that too.