Set Input Axis 1D not working on AI Controller

I’m using the modular vehicle system and, as such, use Set Input Axis 1D (Throttle) to control vehicle drive. This works absolutely fine when on a player-controlled vehicle, but not for an AI-controlled vehicle.

I’ve tried putting this on the vehicle blueprint itself as well as on both an AI controller and a player controller that possess the pawn on spawn, but still no luck. If I posses this same vehicle blueprint with a player controller, it works fine.

I did have this working a while ago, but I can’t seem to work out why it won’t work now.

Any advice would be greatly appreciated. Thanks

(post deleted by author)

Hey :slight_smile:

I was just adding it on tick for testing purposes. I did have additional logic for the AI driving the vehicle, but to keep things simple and make it easier to work out what the problem is, I put it directly on tick with no other logic. I haven’t had any luck with working out why it’s not working though

(post deleted by author)

It’s always good to check the obvious stuff :grin: In this case, I have.

If I possess this pawn with the player instead, the tick setting the throttle works absolutely fine with no changes. I just don’t seem to be able to get it to work any other way

(post deleted by author)

Thank you :slight_smile: I appreciate you taking the time to have a look and try to help!

(post deleted by author)

(post deleted by author)

I believe I’ve run through all of those suggestions and everything appears to be setup/handled correctly. Thank you for the extra suggestions though

(post deleted by author)

This one looks like they’re focusing on trying to just fire Set Input Axis 1D only once, on an event like Begin Play, but I would need to be firing it often based on either player or AI Controller input.

(post deleted by author)

In case anyone comes across this, I couldn’t fix it, but found a sort of work around.

I turned off the “Physics Prediction” setting and this enabled the AI controllers to work. This, however, stopped the player controller inputs from working. Ultimately, I’m having to switch over to the non-modular chaos vehicle system, which seemed to work for both player and ai controller with this setting off.

(post deleted by author)