How to get input for a actor in unreal 5.1?

Hi,

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?

Hey @JimLi_2022!

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:

Check out this great non-Epic affiliated tutorial on setting up those mapping and how to use them:

I hope the above is the solution you need!

1 Like

Hi,

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:

Hey @JimLi_2022!

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!

UnrealEditor_qDbNuTmKlJ

I hope that this helps.

1 Like