Better Way to Handle Booleans?

Tisreece
Wed, 12 Sep 2018 23:24:00 +0000
Blueprint

Hey guys,

I wonder if you can help me with something, or more specifically give me a tips on handling my booleans.
Often times, particularly when activating or deactivating player abilities/inputs I am setting multiple booleans. Such as setting whether I can use my movement inputs, whether I can attack, cast other abilities etc etc.
Once I start adding more abilities and more inputs the character can use I find myself adding more and more booleans that need to be set or run a check on. 4-5 set booleans I can foresee turning into 9-10 once I start adding more abilities.

Is there a better way of handling such a slew of booleans or is having a massive amount of booleans normal?

9 posts - 5 participants