My brain turned off for today and i have a question:
I want to do some stuff in Event Tick, based on boolean variable (Branch node). So if true, do function FunctionA every tick. If false, do FunctionB every tick.
This boolean is meant to be set via Defaults tab, it will not change during gameplay. So actually it needs to be checked only once - is there some “CheckOnlyOnce” or something? Or maybe i should just check this boolean every tick and it doesn’t matter at all? I just don’t know if it has some noticeable impact on performance - or if there is some better method for checking ‘unchangeable’ boolean.
If you only want to check it once when the game starts and are sure it wont change later, the best place for this check would be after an Event Begin Play node.
If for some reason you really want to keep it in your Tick (bool checks are pretty lightweight but this still seems largely unnecessary), I’d suggest starting out with a Sequence node so other stuff that needs to tick can still pass thru on other pins. Then on one of the sequence pins by itself, toss down a DoOnce node and then check the boolean there. This is effectively exactly what you’re asking for in your question.