Time an Interaction in the State Tree
Make a terminal search take two seconds after the player starts it. The slot is claimed while the search runs. Use this setup when the terminal controls the duration, or when the player should be able to walk up to it before the timer starts. Begin with the working switch.
Wait before triggering the terminal
Duplicate the switch's Smart Object and generic tree. Assign the copies to the terminal and its slot. Set the slot's behavior type and matching runtime tag to
Interaction.Type.Search, its text to Search, and its Duration to2.0seconds. On press, request that type.In the tree, use the Interaction State evaluator. Create or reuse a wait state before the state that runs Trigger Target Behavior. Add Wait Interaction to the wait state and bind Summary Id to the evaluator's Summary Id. On success, transition to the trigger state. Bind its target actor and claim handle from the same evaluator. End in success after the trigger, and in failure if either step fails.
For a search that starts timing on press, leave Time Accumulation Mode on the pawn's Interaction Manager set to Automatic. If the timer should begin after reaching the terminal, use Triggered on that manager and insert Start Interaction Time Accumulation in its own state after the approach and before the wait. Give every timed tree that uses this manager a start point.
On the terminal, bind On Interaction Finished to reveal the search result. Use the active interaction summary to display progress during the wait.

Let the Player Interrupt the Search
For a press-and-wait search, release can do nothing. If the player must keep the button down, use a Boolean action with no explicit trigger. On Started, request Search. On Completed (release), call Try Cancel Current Interaction with Interaction.Event.CancelledButtonPress if the same search is still in its cancellable waiting phase. Clear the stored search on finish or cancellation. The tree owns the two-second timer in both versions.
Try It in Play
Start the search. The result should appear once, after two seconds. With release-to-cancel enabled, release after one second. The result should stay hidden and the next search should start from zero. If the bar stays at zero in Triggered mode, check that the tree reaches Start Interaction Time Accumulation before Wait Interaction.