Simple Action Animation

Sorry if this has been answered somewhere. I can’t find this in the documentation but it’s so simple it has to be there somewhere.

I’m trying to enter an animation by pressing a key. Right now I have my transition set up into the animation as a boolean IsPickup? and transition out when the animation is complete. I’m trying to reference this boolean value from the character blueprint and thus control when I play the pickup animation. I just can’t seem to figure it out. Any help would be greatly appreciated.

Can you just use the node “Play Animation”?

If not, you can make a boolean variable in your characterBP, and set that to true when you pick something up. And in your animationBP, cast to your characterBP, grab the new boolean, and set the animBP boolean to true.

Hope that made sense

Yeah, ill try that as soon as I’m back on a computer. Thank alot.

Hmm, can’t seem to pull the variable from the cast. When I over over the “As Character” Character reference node is says “variables not in scope”

Actually, I was casting to Character and not MyCharacter. Works like a charm now. Thanks