# How do I check in verse if a capture area device changed its control?

**URL:** <https://forums.unrealengine.com/t/how-do-i-check-in-verse-if-a-capture-area-device-changed-its-control/2071831>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [October 16, 2024, 10:27pm UTC](https://forums.unrealengine.com/t/how-do-i-check-in-verse-if-a-capture-area-device-changed-its-control/2071831 "2024-10-16T22:27:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LarYye](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LarYye](https://forums.unrealengine.com/u/LarYye)\
**Post date:** [October 16, 2024, 10:27pm UTC](https://forums.unrealengine.com/t/how-do-i-check-in-verse-if-a-capture-area-device-changed-its-control/2071831/1 "2024-10-16T22:27:16Z")

</div>

I’m new to this, all I did until now was to subscribe using the ControlChangeEvent, but I do not know how to actually check it on an if statement

> OnBegin():void=  
> capAreaD.ControlChangeEvent.Subscribe(OnControlChange)
> 
> OnControlChange(Agent: agent) : void =  
> if …

---

<div class="post-metadata">

**Author:** ![LarYye](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LarYye](https://forums.unrealengine.com/u/LarYye)\
**Post date:** [October 17, 2024, 12:35am UTC](https://forums.unrealengine.com/t/how-do-i-check-in-verse-if-a-capture-area-device-changed-its-control/2071831/2 "2024-10-17T00:35:04Z")

</div>

I created a trigger device and put to trigger when the capture area change it’s control

Then in code, added:

> OnBegin():void=  
> triggerD.TriggeredEvent.Subscribe(OnControlChange)
> 
> OnControlChange(newAgent: ?agent): void =  
> NewUI := MakeUI\_A()  
> NewUI.SetVisibility(InVisibility := widget\_visibility.Hidden)

(i want to hide a widget when the control change)

There’s no error in the code, but it’s not working. I did put a print in the OnControlChange to debug, but it don’t even print a message
