No, it's not possible to change a function's local variable from outside it. Better use entity skills for this or something similar.