# Where is SUBSCRIBEAGENT ??

**URL:** <https://forums.unrealengine.com/t/where-is-subscribeagent/2576620>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [June 25, 2025, 11:57pm UTC](https://forums.unrealengine.com/t/where-is-subscribeagent/2576620 "2025-06-25T23:57:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Battle4play.comm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Battle4play.comm](https://forums.unrealengine.com/u/Battle4play.comm)\
**Post date:** [June 25, 2025, 11:57pm UTC](https://forums.unrealengine.com/t/where-is-subscribeagent/2576620/1 "2025-06-25T23:57:33Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/7/a/47a77b8448e20bb8f5e1aa7979cf648ac031df8e.png)

Hi!

I’m working with Verse in UEFN and I’m using a `trigger_device`.  
I noticed that in several recent YouTube tutorials, creators are using the `SubscribeAgent` method on the `TriggeredEvent`, like this:

`Trigger.TriggeredEvent.SubscribeAgent(OnTrigger, index)`

However, in my project, the `SubscribeAgent` function does not appear or is not recognized for my triggers – only the standard `Subscribe` method is available.

Is there something I need to enable or import in order to use `SubscribeAgent`? Do I need a specific project template, device version, or beta access?

Any help or clarification would be greatly appreciated!

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![btwixer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@btwixer](https://forums.unrealengine.com/u/btwixer)\
**Post date:** [June 26, 2025, 1:38am UTC](https://forums.unrealengine.com/t/where-is-subscribeagent/2576620/2 "2025-06-26T01:38:35Z")

</div>

It’s a extension you can define yourself, such as with this.

```auto
(Listenable : listenable(agent)).SubscribeAgent(OutputFunc : tuple(agent, t)->void, ExtraData : t where t:type) : cancelable =
    Wrapper := wrapper_agent(t){ExtraData := ExtraData, OutputFunc := OutputFunc}
    Listenable.Subscribe(Wrapper.InputFunc)
 
wrapper_agent(t : type) := class():
    ExtraData : t;
    OutputFunc : tuple(agent, t) -> void
    InputFunc(Agent : agent):void = OutputFunc(Agent, ExtraData)
 
(Listenable : listenable(tuple())).SubscribeEmpty(OutputFunc : t -> void, ExtraData : t where t:type) : cancelable =
    Wrapper := wrapper_empty(t) {ExtraData := ExtraData, OutputFunc := OutputFunc}
    Listenable.Subscribe(Wrapper.InputFunc)
 
wrapper_empty(t : type) := class():
    ExtraData : t;
    OutputFunc : t -> void
    InputFunc():void = OutputFunc(ExtraData)

```

I don’t recall where I got this from, or I’d include the link.

Hope it helps.
