Calling Aim 1D in specific action

I’m developing a system for my project that enables aiming when one action mapping is pressed, and disables aiming
when that button gets released.
I’m pretty sure the way I’m doing it’s not the best way, anyway, when you press the button, pitch and yaw locks, and when you release the button, they reset.
The issue I’m having is setting the animation to work.
After searching a bit, in the third person BP, I have an AIM 1D set up.
I have an action input for Aim and I have a state for Aim.
There’s a Boolean in the Character Blueprint called “Is Aiming?” and a tree branch for the action.
Then in the AnimBP I have another “Is Aiming?” Boolean for the transitions.
I tried to implement in the animBP a cast to character, to check if it’s aiming, and then set the aiming of the animbp, that works to play montages from anim montages, but that’s not working with the aim state, and I’m not finding any way to set the aim state into the animBP event graph.
If someone knows what I’m doing wrong (I hope not the entire process haha) and has and idea of how I can continue this it would be epic!
Thanks in advance