Action Mappings – one button responses for an FPS character
An Action mapping is for handling single-button pushes (not buttons that are held down). For buttons that should be held down, be sure to use an Axis mapping instead.
Getting ready
Have a UE4 project ready with the actions that you need to complete, such as Jump
or ShootGun
.
How to do it...
- Open Settings | Project Settings | Input.
- Go to the Action Mappings heading, and click on the + icon beside it.
- Start to type in the actions that should be mapped to button pushes. For example, type in
Jump
for the first Action. - Select a key to press for that action to occur, for example, Space Bar.
- If you would like the same action triggered by another key push, click on the + beside your Action Mappings ...
- Start to type in the actions that should be mapped to button pushes. For example, type in
Get Unreal Engine 4 Scripting with C++ Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.