I did put my return nodes where I had to but in the end it will just resume its path when leaving the function node. I may have not understood what you meant.
I would like the code to just stop if something is not valid.
You can return a bool as well as the updated movement enum. You can set the bool to show that movement is not valid, and then the code one level up, can stop the movement. It really depends how you want to do it…
Okay.
What I’m struggling with is that I was basically using functions to also organize my code and not have a billion things in the level above.
I don’t really know what to avoid doing inside these functions and what could go inside without problems. Maybe this is not the way it should be done, I’d really want to keep it tidy and clean.