Variables in Behaviour Tree task

Hi!

I have my blueprint task and not editable variable in it. On task execution I increment this variable and finish task. On the second run of same task looks like this variable has not default value, but incremented. Is it true that variables in tasks are static? Can I make them non-static? Thank you!

Regards,
Ivan

Tasks are not getting destroyed when they finish execution so all changes to BP’s variable values persist between runs. You can always manually reset values of the variables as part of ReceiveExecute handling.

Cheers,

–mieszko

Thank you for explanation!

Regards,
Ivan