# Is there a way to get a reference to the current device the subscribed event is into?

**URL:** <https://forums.unrealengine.com/t/is-there-a-way-to-get-a-reference-to-the-current-device-the-subscribed-event-is-into/1261955>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, fortnite\
**Created:** [August 15, 2023, 3:18pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-get-a-reference-to-the-current-device-the-subscribed-event-is-into/1261955 "2023-08-15T15:18:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Portine](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/portine/32/1182274_2.png) [@Portine](https://forums.unrealengine.com/u/Portine)\
**Post date:** [August 15, 2023, 3:18pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-get-a-reference-to-the-current-device-the-subscribed-event-is-into/1261955/1 "2023-08-15T15:18:21Z")

</div>

I want to push the triggers that the events are subscribed into down when they are triggered, how can I get reference to themselves through Verse?

Something like this:

```auto
OnBegin<override>()<suspends> : void=
    MyTrigger.TriggeredEvent.Subscribe(OnTriggerEvent)

OnTriggerEvent():void=
    self.SetTransform(NewTransform)

```

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![DustinREDGames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dustinredgames/32/634988_2.png) [@DustinREDGames](https://forums.unrealengine.com/u/DustinREDGames)\
**Post date:** [August 15, 2023, 4:52pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-get-a-reference-to-the-current-device-the-subscribed-event-is-into/1261955/2 "2023-08-15T16:52:11Z")

</div>

Yes, you can create a handler method that passes the additional info you need, see my example here:

> [@listenable Interfaces/Functions Should Pass this as the First Argument](https://forums.unrealengine.com/t/listenable-interfaces-functions-should-pass-this-as-the-first-argument/1206712/2):
>
> I agree more info passed would be extremally helpful. But for now, you can create a callback handler class that passes the additional references you need to what device triggered the event. Something like this: (untested!) # custom callback handler that passes the device that triggered the event CustomCallbackHandler := class(): Manager : test\_callback\_device Device : vehicle\_spawner\_device HandlerFunction(Agent:agent):void= Manager.OnEventTriggered(Agent, Device) test\_ca…

---

<div class="post-metadata">

**Author:** ![Portine](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/portine/32/1182274_2.png) [@Portine](https://forums.unrealengine.com/u/Portine)\
**Post date:** [August 15, 2023, 6:45pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-get-a-reference-to-the-current-device-the-subscribed-event-is-into/1261955/3 "2023-08-15T18:45:59Z")

</div>

That was exactly what I needed, it worked perfectly, thank you very much!
