BP Cast fails after two cycles

I’m trying to get the characters speed as a ratio from 0-1

This node setup - http://i.imgur.com/WKi0y5g.png

Produces this result - http://i.imgur.com/tB5L9Fa.png

Why does the cast fail after a few cycles?


Current entire character BP - http://i.imgur.com/I9OBb4A.png

Current entire animation BP - http://i.imgur.com/7Yq9rI0.png

What it looks like when you’re stationary - http://i.imgur.com/9p2LJTR.png

What it looks like when you’re moving - http://i.imgur.com/tflUoNa.png

The text renderer updates correctly (the white text above the character), but the casting fails after the initial couple of cycles (blue text on the left)

I have looked at the official UE4 youtube tutorials - - YouTube

and they use the same setup.

Hm, could you check if the “Try Get Pawn Owner” is valid?
There should be a node “is valid” for this. Just make a second pair of prints
to check if the return is valid or not.

I don’t really know why it could be not valid, but maybe another one on the HUB
can help you easier with more debugging from your site. (:

I have tried every possible ‘Get’ function and put all of them through isValid, nothing works, i was surprised when i even got this small amount to print initially.

Something must be happening outside this node setup.

sadly no, ive updated my post with some more info

So the Pawn and every other Character Getting Node is Valid but the cast fails with all of them. Your test renderer updates the correct speed as if the BP is still working? Can you recreate this is in new blank project and check if the error persists? If it works in a new project, than there must be something else making the cast fail.

It’s working fine now, I think I had an incomplete Tick override