I’m trying to do a simple check for for a variable (stamina). If the player has stamina, I want the function to return true. If the player does not have stamina, I need to to return false. Simple as that eh?
My problem here is that I need something like, a reverse branch?? Maybe I am just going about this wrong. I can set the return node to return the value “HasStamina” if it is greater than 0, but since I can only have one return node, how do I allow it to also set the same variable to false if the player has less than or equal to 0 stamina? Or is there a way to create a function-like variable like you can in C# or Java.
I need a node with the code equivalent of:
if (stamina > 0) return true else return false