< not working
Hello guys. I'm following a youtube RPG tutorial and on the Mana I kind of went my own way with it and paused the video it all seems to be working great, when I cast a spell the Mana loses 0.1 points, I have a < set so if Mana is less than the cost of the spell the script will run (false)
The problem is it will stop at 0.1 Mana and won't go down to zero. Been trying to figure this out but I can't. Any help would be appreciated am a n00b.
asked Jul 24 '17 at 08:00 PM in Blueprint Scripting
Could you put a screenshot of your setup? I did a quick one that I imagine yours might look like. This runs until mana = 0.
answered Jul 24 '17 at 08:23 PM
Try a <= node.
On a side note, personally I think it's logically easier to read from the true part of the branch, so I'd switch it around. If mana is >= healmana do stuff.
Hope you get this working.
answered Jul 26 '17 at 10:00 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here