Skip to content

Add or rebind inputs

GASPALS uses Enhanced Input. When a player possesses a pawn, the pawn adds the mapping contexts listed in its Input Mapping Contexts setting (default: IMC_Sandbox at priority 0). The systems listen to input actions (IA_*), not keys, so rebinding is a matter of editing mappings.

Rebind a key

Open /GASPALS/Input/Mappings/IMC_Sandbox, find the action, and change its key. For example, move the cover run (IA_CoverRun) from Q to F to give it its own key; sticky cover (IA_CoverSticky) stays on Q. Save; the change applies at the next Play.

Add gamepad bindings

A few actions have no gamepad key in IMC_Sandbox: IA_Overlay_Body, IA_Camera_Style, IA_NextPawn, IA_NextVisualOverride, IA_TeleportToTarget and IA_Move_WorldSpace. Every gamepad button already has an action (see Controls), so free one first, or map the action to a button combination with a Chorded Action trigger.

Note

The Z key is hard-wired to the debug flying toggle of AC_DebugTools (keyboard only; it does not use a gamepad button). Turn Enable Debug Tools off on the pawn's AC_DebugTools, or remove the component, before shipping. See Debug tools.

Use your own mapping context

  1. Create your context and map the GASPALS input actions (copy IMC_Sandbox to start).
  2. Open each pawn's Class Defaults and, under GASPALS > Input, replace IMC_Sandbox in Input Mapping Contexts with yours. No graph edit is needed.

Add more contexts as more entries of the map, with a higher priority for contexts that should win on shared keys (for example a gamepad-only context). An empty map leaves the player without controls and shows an on-screen warning. A game that adds its own mapping contexts (when it takes the pawn's input some other way) leaves the map empty and turns off Warn if No Input Mapping Contexts (bWarnIfNoInputMappingContexts, default on) on the pawn: then there is no warning and no log line.

Who handles which action

Handled by Actions
The pawn Move, look, sprint, walk, strafe, aim, crouch, jump (also gets up from a ragdoll), cover
PC_Sandbox Next pawn, next character, teleport (through the pawn's AC_DebugTools)
AC_CameraSystem Perspective, style, shoulder
AC_EquipmentSystem Equipment menu, menu next / previous
AC_OverlaySystem Overlay pose and body menus, menu next / previous
AC_RagdollSystem Ragdoll and get up
AC_InteractionSystem Takedown, interact (shove), without aim
AC_DebugTools With aim held, takedown and interact (demo shot, spawn / rotate); debug fly (Z)
AC_SmartObjectAnimation Interact (benches)

Components bind their own input actions, so they receive input only when their pawn is player controlled and a context maps the action. The full list is in Input actions.

Add an input to a system

Example: a button that leaves cover at once.

  1. Create an input action IA_LeaveCover (value type Digital (bool)) in your own content folder, not inside the plugin.
  2. Map it in your mapping context (or in IMC_Sandbox) to a free key.
  3. In the pawn's Event Graph, add the IA_LeaveCover event and, on Started, call AC_CoverSystem > ExitCover.
  4. On the Mover pawn, remember that movement goes through the input command: changes that affect movement should be read in ProduceInput rather than applied directly.

Unused input assets

IMC_Sandbox is the only mapping context in /GASPALS/Input/Mappings. Traversal runs from IA_Jump; there is no separate traverse action.