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...

  1. Open Settings | Project Settings | Input.
  2. Go to the Action Mappings heading, and click on the + icon beside it.
    1. Start to type in the actions that should be mapped to button pushes. For example, type in Jump for the first Action.
    2. Select a key to press for that action to occur, for example, Space Bar.
    3. If you would like the same action triggered by another key push, click on the + beside your Action Mappings ...

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.