set_input_action_flags
Set an InputAction's behavior flags to control how it consumes input, triggers when paused, and interacts with other mappings. Use consume_input carefully to avoid swallowing other actions.
Instructions
Set an InputAction's behaviour flags: consume_input, trigger_when_paused, consumes_action_and_axis_mappings, reserve_all_mappings, the legacy-key consume bitmask, accumulation behaviour and the editor description. Handle consume_input with care -- it is the flag that decides whether OTHER actions on the same key still fire, and turning it on can swallow the game's interaction key entirely, a failure that shows up in an unrelated system days later. Only the fields you pass change, and a call that passes none is an error; the action is saved, and the call succeeds only when it reaches disk. Verify with get_input_action.
Returns: { action_name, action_path, b_consume_input, b_trigger_when_paused, b_consumes_action_and_axis_mappings, b_reserve_all_mappings, trigger_events_that_consume_legacy_keys, accumulation_behavior, action_description, flags_set, saved, save_error? }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action_name | No | Input action name | |
| action_path | No | Asset path of the Input Action | |
| consume_input | No | When set, updates the action's bConsumeInput flag. | |
| action_description | No | When set, updates the action's ActionDescription (FText) shown in the editor. | |
| trigger_when_paused | No | When set, updates the action's bTriggerWhenPaused flag. | |
| reserve_all_mappings | No | When set, updates bReserveAllMappings. | |
| accumulation_behavior | No | When set, one of "TakeHighestAbsoluteValue" or "Cumulative". | |
| consumes_action_and_axis_mappings | No | When set, updates bConsumesActionAndAxisMappings. | |
| trigger_events_that_consume_legacy_keys | No | When set (int32 ETriggerEvent bitmask), updates TriggerEventsThatConsumeLegacyKeys. |