Variable out of scope

Hi!

I’ve got a problem. I defined variables in object blueprint and used it in pure function. Both - function and variables are public. When I use this function in Character blueprint, I can get a refference to those variables, but I get a message that they are out of scope and system doesn’t work. Any suggestions what to do about it? I was trying to switch them with local variables, but still, no will do.