UE 4.6.0 Preview returning incorrect Axis value

Hi,
I am trying to get axis value in AIController blueprint, I am getting value as 0.

When tried same in Player Character blueprint got appropriate axis value.
Please let me know if I am wrong.

Image Attached for further reference

Hey ,

I didn’t have any trouble with this in 4.5 or 4.6. What are you using as your StartWalk value, and how are you updating it? Using this setup in my AI Character, I was able to get MoveForward float value:

22658-aigetcharactermoveforward.png

I am getting 0 even in 4.5.1. ‘StartWalk’ is parameter for AxisMapping.

Attaching image for reference.

Okay, so I set up a custom Axis Mapping like you did, and in 4.5.1 I encountered same bug. But in 4.6 Preview, it appears to be working correctly. I’m not certain why it would be different for you; BP setup you showed me looks correct. Would you mind creating a small test project in which this occurs and uploading it somewhere I can get to? Thanks!

I have updated my project from ‘4.5.1’ to ‘4.6 preview’ this must be reason.
I even tried with a test project(4.6 preview), in test project Event tick was not working at all in custom AIController blueprint.

Please find test project :
https://.com/file/d/0B-Pemcyg_OKMNWdEWVhJcmwzVXM/view?usp=sharing

Hi ,

I’m not sure how I was able to get it to work in 4.6 Preview, as I cannot make it work anymore. I can now consistently reproduce bug you are describing with Get node for custom axis mapping outside of controller. I entered a bug for our developers (UE-6183) and I will let you know when I see an update. Thanks for report!

As a workaround for now, you can promote value of Get StartWalk to a variable on Tick inside PlayerController. Then in your Character or AI BP, cast to that variable in Controller for updated value.

reason your Tick wasn’t working in test project is likely because it was in an AIController that wasn’t actually being used in level.

Hope that helps for now!