This might be ultra stupid, but still. I have a big funtion, and I want it to return a bool at a certain point, so in event graph I can use that bool as a condition to that event.
The bool works and gives diffrent values inside function, but the output bool always comes out false. I tried it with an integer, and it kept giving me 0 in the output. Here is a branch on a screenshot below always going false:
What am I doin wrong?
I think you need to run the function before you run the branch node. If the function hasn’t been run, then the branch node won’t know what the value is because it’s trying to recieve an output that hasn’t been out-putted yet.
I knew it was that easy, thanks!
But what about a function that returns other type of values, like a map in my case? I’m dealing with the same issue.
I have a recursive function that has the final value all right, inside of itself, but doesn’t return anything when called inside another function, the map is empty.