# Confirm an Interaction with a Hold Input Action

> For the complete documentation index, see [llms.txt](llms.txt).

Make the player hold Use for 0.8 seconds before a switch activates. The player can release early with no effect, and another character can use the slot while the first player is deciding. Start with an [immediate switch](int-guide-immediate.html) and an active Enhanced Input mapping context.

Procedure: Remember what the player started holding for

1. Create a Boolean IA_ConfirmInteraction. Add a Hold trigger, set Hold Time Threshold to `0.8`, and enable Is One Shot. Map it to the interact key. Use this binding in place of the switch's press-to-start binding.

2. On Started, use the pawn's Interaction Manager to get Focused Interaction Targets, then Get Interaction Summaries for Target. Choose the enabled, focused summary for `Interaction.Type.Interact` and store its Summary Id on the local player. Leave the slot free at this point.

3. On Ongoing, you can show progress using the input event's elapsed seconds divided by `0.8`, clamped to 0–1. Clear the saved ID and bar on Canceled or if `OnFocusStateChanged` reports that the saved summary lost focus. Clear it on unregistration too.

4. On Triggered, take the saved ID, clear the pending confirmation, and call Try Initialize Interaction By Summary Id (`TryInitializeInteractionBySummaryId`) once if the ID is valid. The server checks the selected slot is still focused, enabled, and claimable. Use Completed for local input cleanup.

The slot uses Duration 0 with the immediate tree. The input action owns the entire wait. If you want the slot reserved or need interaction progress to replicate during the wait, use [the State Tree timer](int-adv-interaction-duration.html).

## Try It in Play

Release halfway through the hold. The bar should reset and the light should stay as it was. Hold past the threshold to toggle it once. Finally, start holding on switch A, turn toward switch B, and finish holding. Neither switch should activate until a fresh press. If B reacts, check that confirmation uses the saved summary ID and that losing focus clears it.

