In c++ you can declare it as static, but in BP you can’t, so any local variable will be reconstructed with default value when function called.
In case you want to use function to increment something - you need to use external variable.
In c++ you can declare it as static, but in BP you can’t, so any local variable will be reconstructed with default value when function called.
In case you want to use function to increment something - you need to use external variable.