Functions not calling variables correctly

Hey all,

I’ve been trying to get the rotation and transform of an actor inside of a function in order to spawn a projectile. But for some reason the values are all “out of scope” and nothing happens.

Outside of the function, in the Event Graph they are fine:

I’m realy clueless as to why that is. I also tried making the variables public, but it didn’t change anything.