Hello! I have a custom action with private variables. Whenever I run the action, the variables' values seem to be saved in runtime. For instance, if I change a boolean from its default value of false to true during a run, the next time I run the action, the boolean will still have the value of true by default. How can I prevent this from happening?
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
This is my Code, The variable grabbedName stays true when I run another action of "ActionWaitForAnimation", but it should always be false the first time it runs.
An Action's
Run
function will be called beforeCheckCondition
- you can assign the intended default value inside it.This function can also be simplified because it doesn't need to run over multiple frames: