Unreal 5.1 now uses enhanced input system to handle its input, but that only works for playercontroller. And the old input action system in the project setting is deprecated. I wonder if there is still a way to allow actors to receive input events without a playercontroller?
You should be able to add whatever actor you need, you will just need to set up your input mapping contexts. For example, this is on a static mesh actor:
I can get the IA_Jump action node from any actor but it looks like the action will only be triggered for playercontroller(the print string node in the below image can not be called). And do you know how to add input mapping context to an actor? It seems like there is no such a node to do so:
After doing some digging, it looks like you can enable input on your actor, which will allow all enhanced input mappings to work, however, that would still require a player controller of some sort to be active. I haven’t found yet a workaround for this unfortunately, but maybe another community member already has!
Also, the vehicle is a skeletal mesh type Actor, not static mesh Actor.
Should this work? Did you get it to work for an Actor while a Pawn was possessed by the Controller?
EDIT:
I created the most simplistic project in UE 5.3.2, a simple Pawn and a simple Actor. I got this to work. So now I have to go back and figure out what is different with this test project and the one I was trying to get it to work on.
In answer to my last question above, yes, I can trigger the event in the Pawn, the Actor, and even in the Player Controller - one event played out in all three Blueprints. (There is no need to possess any Actor to make this work.)
EDIT:
One more thing I found, in the project that it fails with, I tried a Static Mesh Actor, and it works in that. So the vehicle (ViperChaos) being a Skeletal Mesh Actor may have something to do with the failure to receive inputs. I noticed it has at the Self level of the BP the Pawn properties in the Details window. This also has the Chaos Vehicle component in it.
I will keep looking, but any insight would be helpful.