How to get Yaw value into my Anim Bp

Im sill new to Unreal so sorry in advance if this is basic.
I tried searching the internet and tutorials but everyone does this different and none seemed to work.

I am using the Third Person basic pack so i got some Variables and setup for “free”
All i am trying to do is create a Yaw value that gives my capsule rotation direction. I figured it out on my capsule in the Anim Class BP. The issue here though is i have no clue how to get this variable to appear/work in my Animation BP. I have tried the various Pawn and BP casting methods but i hit dead ends or nodes to go into others.


(this does have a Set input from my left/right turn mouse event.)

This is the setup the pack gives so it has some casting in here but i dont know how to really combine this and the setup people use online to link the two BPs

With the first example/image i dont know how to do in my Anim BP directly (get the Yaw value)

So ideally i am looking on how to cast the Class BP to my Anim BP or just set up in my Anim BP a new Yaw value like i did in the Class BP

Images would be handy because i still dont understand all the terminology

Thanks Again!

Small update. I did this.

which i think links my Char BP to my Anim BP. I pulled off the Yaw value i set in the Char BP however, its not doing the same thing it did in the Anim BP. Which is give me values when i rotate my mouse.

image

During Anim Preview, if i change the Yaw value the logic works. But i cant seem to get the value to increase/decrease when i use my mouse (which does work if i print string the char bp logic)

Try getting the yaw from the character reference at the end of the sequence in the Update Animation event. Getting it during Initialize will only update it one time when the character spawns.

Okay as a test that did work!
But i basically can only turn. I am guessing my logic here is not good at sharing.

So how do i go about setting both of these Events up and working

First, Plug the cast to third person character back into the initialize event so it can set the references. Then move the set yaw node to the sequence in the update event, and plug the character reference variable into it so it looks kinda like this:

Might be cleaner to put it on the first Then branch, but it should work either way.

Awesome thank you. So im at the point of the Character Ref Variable. So i have 2, one does not connect the other does.

But when i was researching - it was to make sure that the reference is the same name as the BP so the Char BP can be referenced to my Anim BP. The correct name variable does not connect.

Would you be able to kind of explain why one works and the other does not?

Okay so i did this - i changed the drop down from “character” to my BP and it was able to connect it. I guess that is what they meant haha, not just a name change
image

Yea, since bp_thirrdpersoncharacter is a child of the native character class, you need to cast to the specific class to get any variables that aren’t in the parent. Getting stuff like the move component works because it exists in both the parent and child.

Kinda awkward that Epic set up the reference in the template animation bp to use the base class instead of bp_thirdpersonchar lol.

1 Like