# InteractedWithEvent for Button not triggering as expected

**URL:** <https://forums.unrealengine.com/t/interactedwithevent-for-button-not-triggering-as-expected/831435>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [March 29, 2023, 4:08am UTC](https://forums.unrealengine.com/t/interactedwithevent-for-button-not-triggering-as-expected/831435 "2023-03-29T04:08:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zobbyZeus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zobbyzeus/32/678722_2.png) [@zobbyZeus](https://forums.unrealengine.com/u/zobbyZeus)\
**Post date:** [March 29, 2023, 4:08am UTC](https://forums.unrealengine.com/t/interactedwithevent-for-button-not-triggering-as-expected/831435/1 "2023-03-29T04:08:02Z")

</div>

OnBegin() : void =  
# You can output to the log like this to determine what your script is up to  
Logger.Print(“ATV Script Started!”)  
TimerUpgradeButton.InteractedWithEvent.Subscribe(OnButtonInteractedWith)  
# When the player spawns, the function “HandleAgentSpawned” is called.  
PlayerSpawnDevice.SpawnedEvent.Subscribe(HandleAgentSpawned)  
# Same for the Timer. We subscribe to when it expires  
TimerDevice.FailureEvent.Subscribe(HandleTimerExpired)  
DirtbikeSpawnDevice.AgentEntersVehicleEvent.Subscribe(OnAgentEnter)

OnButtonInteractedWith(InPlayer:agent) : void =  
set EngineTimeLimit = EngineTimeLimit + 5.0  
HUDMessageBattery.SetText(EngineUpgradeMessage(EngineTimeLimit))  
HUDMessageBattery.Show(InPlayer)

In a game session, the code for interacting with the button works as expected.  
However, when I set the button’s event to enable on selecting a Pop-Up Dialog option, it does not trigger.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/a/e/eae6c069aaeaf41e725db9e78ef073bbd9252593.png)

What could be going on here?

---

<div class="post-metadata">

**Author:** ![SyntaxzError](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SyntaxzError](https://forums.unrealengine.com/u/SyntaxzError)\
**Post date:** [March 29, 2023, 8:34am UTC](https://forums.unrealengine.com/t/interactedwithevent-for-button-not-triggering-as-expected/831435/2 "2023-03-29T08:34:37Z")

</div>

Hello zobbyZeus,

Quick question are you subscribing the onInteractevent to the button?  
If not try passing the button to verse see [8. Final Result](https://dev.epicgames.com/documentation/en-us/uefn/team-elimination-game-8-final-result-in-verse) for more info about subscribing events.
