get_input_action_state
Read the live Enhanced Input state of an InputAction to verify whether it fired, since input injection succeeds regardless. Check is_tracked, trigger events, and last_triggered_world_time as proof.
Instructions
Read the live Enhanced Input state of one InputAction for a local player in a running PIE or game session: is_tracked, trigger_events, value, last_triggered_world_time and the mapping contexts that carry it, applied or not. It is the oracle for whether an input fired, since inject_key_input and trigger_input_action succeed either way: read it before and after, and an advancing last_triggered_world_time is the proof. is_mapped_in_applied_context false means no applied context maps it (removed on mounting, in a vehicle or a menu); is_tracked false means the engine is not evaluating it, typically an unpossessed pawn. In co-op, world picks which local player is read.
Returns: { action_path: string, action_name: string, value_type: string, is_enhanced_input: bool, is_tracked: bool, is_mapped_in_applied_context: bool, trigger_event: number, trigger_events: array, value: array, elapsed_seconds: number, triggered_seconds: number, last_triggered_world_time: number, world_time_seconds: number, contexts_mapping_action: array, contexts_mapping_action_count: number, applied_context_count: number, player_index: number, player_controller: string, player_input_class: string, world: string, note: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| world | No | World selector: 'pie' (default) | 'server' | 'client' | 'pie:N' | 'game'. | |
| action | No | InputAction to read: full object path or short asset name. Aliases: action_path, action_name. | |
| action_name | No | Alias of action, read only when action is absent or empty and action_path is absent: InputAction object path or short asset name. | |
| action_path | No | Alias of action, read when action is absent or empty: InputAction object path or short asset name. | |
| player_index | No | Local player index (default 0). |