How do I get vehicle speed in the Animation Event Graph?

For the life of me I cant figure out how to use variables from a blueprint in an animation event graph? Im trying to cast to my vehicle, but can’t seem to figure it out.

I started with the vehicle template project that has the sedan.

Here, you go u need to get MovementComponent from vehicle and cast to WheeledVehicleMovementComponent to get the velocity.

Update: Duncan your code works, but the visualization of the code flowing must be bugged.

good to hear, i think u need to choose the correct actor for Debug Filter drop down, then it will show the correct flow.

Thx Duncan. This is what i was looking for.