# How do I add custom events in verse creative devices?

**URL:** <https://forums.unrealengine.com/t/how-do-i-add-custom-events-in-verse-creative-devices/824922>\
**Category:** Verse\
**Tags:** custom-event, unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [March 26, 2023, 2:28pm UTC](https://forums.unrealengine.com/t/how-do-i-add-custom-events-in-verse-creative-devices/824922 "2023-03-26T14:28:50Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![mw138](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mw138/32/639835_2.png) [@mw138](https://forums.unrealengine.com/u/mw138)\
**Post date:** [March 26, 2023, 2:28pm UTC](https://forums.unrealengine.com/t/how-do-i-add-custom-events-in-verse-creative-devices/824922/1 "2023-03-26T14:28:50Z")

</div>

I have a device that handles all gameplay logic for my game mode, and I have a storm controller in my level that I want to generate whenever something is triggered in that device. How do I add a custom event like what is seen in other creative devices?

**Storm Controller**

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/5/5/2550cb2f5065f5c45b125f840519cc2a7ff89bf0.png)

I want to be able to select an event from this dropdown which will then generate the storm.

**Score Manager Example**

Verse (Digest script):

```auto
MaxTriggers<public>:listenable(agent) = external {}

```

Verse (Custom creative device script):

```auto
var ScoreManager : score_manager_device = score_manager_device{}
ScoreManager.MaxTriggers.Subscribe(Func)

```

Editor:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/2/4/b24dc2b7e4ea3d7e4010a2713c9008226630ccdc.png)

---

<div class="post-metadata">

**Author:** ![Dig\_Squid](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dig_squid/32/1145423_2.png) [@Dig\_Squid](https://forums.unrealengine.com/u/Dig_Squid)\
**Post date:** [March 27, 2023, 7:39am UTC](https://forums.unrealengine.com/t/how-do-i-add-custom-events-in-verse-creative-devices/824922/2 "2023-03-27T07:39:35Z")

</div>

Thanks for the feedback, this is something that is being considered, I passed this on to the dev team.

---

<div class="post-metadata">

**Author:** ![Conan\_Reis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/conan_reis/32/1016955_2.png) [@Conan\_Reis](https://forums.unrealengine.com/u/Conan_Reis)\
**Post date:** [March 27, 2023, 9:53am UTC](https://forums.unrealengine.com/t/how-do-i-add-custom-events-in-verse-creative-devices/824922/3 "2023-03-27T09:53:22Z")

</div>

Could you simply expose an `event` variable in your device and call `Signal()` on it when it is triggered? It might not be exactly the same, though it should have essentially the same functionality. An example is in the Space Inside / Escape Room showcase.

> [@Creating my own await function](https://forums.unrealengine.com/t/creating-my-own-await-function/794405/7):
>
> You can also use an instance of an event class. That is more efficient than polling with a Sleep() - though sometimes polling is the way to go depending on the situation. call Await() on the event in any of the places that you want to wait for it then call Signal() on it to wake it up. An example of it being used is in the Space Inside / Escape Room’s cinematic\_character\_device.

---

<div class="post-metadata">

**Author:** ![mw138](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mw138/32/639835_2.png) [@mw138](https://forums.unrealengine.com/u/mw138)\
**Post date:** [March 28, 2023, 11:51am UTC](https://forums.unrealengine.com/t/how-do-i-add-custom-events-in-verse-creative-devices/824922/4 "2023-03-28T11:51:02Z")

</div>

How do you expose an event variable? Like this?

```auto
MyEvent<public>():event()

```

If so, I get this error:

```auto
Non-abstract class cannot declare abstract function `MyEvent`.(3591)

```

---

<div class="post-metadata">

**Author:** ![AJ\_Lakeman](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/aj_lakeman/32/770700_2.png) [@AJ\_Lakeman](https://forums.unrealengine.com/u/AJ_Lakeman)\
**Post date:** [March 28, 2023, 12:29pm UTC](https://forums.unrealengine.com/t/how-do-i-add-custom-events-in-verse-creative-devices/824922/5 "2023-03-28T12:29:21Z")

</div>

You’re missing the right-hand side:

```auto
MyCustomEvent<public> : event() = event(){}
```

Once you’ve added the above, you’ll be able to signal the event using

```auto
MyCustomEvent.Signal()
```

---

<div class="post-metadata">

**Author:** ![mw138](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mw138/32/639835_2.png) [@mw138](https://forums.unrealengine.com/u/mw138)\
**Post date:** [March 28, 2023, 12:54pm UTC](https://forums.unrealengine.com/t/how-do-i-add-custom-events-in-verse-creative-devices/824922/6 "2023-03-28T12:54:05Z")

</div>

That fixed the error, thanks. However you can’t select it from the dropdown box from another device function. I am misunderstanding these events or is there something else I’m missing?

**Storm Controller**

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/f/1/cf11c2a9188da05d275fe5adfb907cc98aa80cbc.png)

You can’t create an editable storm controller variable so I can’t subscribe to it via Verse, only through these functions.

EDIT:

I am also getting this error when trying to signal the event

```auto
Unknown member `Signal` in `tuple()->event(tuple())`.(3506)

```

---

<div class="post-metadata">

**Author:** ![lwillsl](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lwillsl/32/651027_2.png) [@lwillsl](https://forums.unrealengine.com/u/lwillsl)\
**Post date:** [March 28, 2023, 1:10pm UTC](https://forums.unrealengine.com/t/how-do-i-add-custom-events-in-verse-creative-devices/824922/7 "2023-03-28T13:10:42Z")

</div>

It would be nice if anyone can provide a fully working step by step example of how to use custom events and Signal() since we don’t fully understand how we should approach it.

---

<div class="post-metadata">

**Author:** ![AJ\_Lakeman](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/aj_lakeman/32/770700_2.png) [@AJ\_Lakeman](https://forums.unrealengine.com/u/AJ_Lakeman)\
**Post date:** [March 28, 2023, 1:18pm UTC](https://forums.unrealengine.com/t/how-do-i-add-custom-events-in-verse-creative-devices/824922/8 "2023-03-28T13:18:53Z")

</div>

The [tutorial on creating a countdown timer](https://dev.epicgames.com/documentation/en-us/uefn/custom-countdown-timer-in-verse) shows you how you can set up events. In the tutorial you set up an event and signal it when the countdown ends.

---

<div class="post-metadata">

**Author:** ![mw138](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mw138/32/639835_2.png) [@mw138](https://forums.unrealengine.com/u/mw138)\
**Post date:** [March 28, 2023, 1:31pm UTC](https://forums.unrealengine.com/t/how-do-i-add-custom-events-in-verse-creative-devices/824922/9 "2023-03-28T13:31:00Z")

</div>

So you can only use events in other custom Verse creative devices and cannot be used in the dropdown boxes for existing creative devices?

---

<div class="post-metadata">

**Author:** ![Julianoz1224](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/julianoz1224/32/698263_2.png) [@Julianoz1224](https://forums.unrealengine.com/u/Julianoz1224)\
**Post date:** [March 30, 2023, 5:07am UTC](https://forums.unrealengine.com/t/how-do-i-add-custom-events-in-verse-creative-devices/824922/10 "2023-03-30T05:07:53Z")

</div>

I’m having the same issue. Can’t get any of my events or functions to show up in the device options for linking.

---

<div class="post-metadata">

**Author:** ![lwillsl](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lwillsl/32/651027_2.png) [@lwillsl](https://forums.unrealengine.com/u/lwillsl)\
**Post date:** [March 30, 2023, 6:20am UTC](https://forums.unrealengine.com/t/how-do-i-add-custom-events-in-verse-creative-devices/824922/11 "2023-03-30T06:20:45Z")

</div>

From what I understand this functionality is not available. At least for now. You can create a custom event in your code, you can send it using Signal(), you can listen for it in any other custom device’s code using Await(), but you can’t access it from default creative devices (again, at least for now).

---

<div class="post-metadata">

**Author:** ![WarpStudios](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/warpstudios/32/968245_2.png) [@WarpStudios](https://forums.unrealengine.com/u/WarpStudios)\
**Post date:** [June 11, 2023, 5:31pm UTC](https://forums.unrealengine.com/t/how-do-i-add-custom-events-in-verse-creative-devices/824922/12 "2023-06-11T17:31:03Z")

</div>

Any update on this? Would be really great to have this implemented.

---

<div class="post-metadata">

**Author:** ![WarpStudios](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/warpstudios/32/968245_2.png) [@WarpStudios](https://forums.unrealengine.com/u/WarpStudios)\
**Post date:** [June 12, 2023, 2:02am UTC](https://forums.unrealengine.com/t/how-do-i-add-custom-events-in-verse-creative-devices/824922/15 "2023-06-12T02:02:45Z")

</div>

Thanks for that example @wxyz it wasnt exactly what i was having issues with but it put me on the path to find a work around so muchly appreciated!

Just to clarify because it maybe its still solvable without the workaround. As an example if i have an item spawner and i want to bind Enable() to an event on a custom creative device i can’t seem to do that as no events show up in the drop down.

---

<div class="post-metadata">

**Author:** ![Mataleone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mataleone/32/741028_2.png) [@Mataleone](https://forums.unrealengine.com/u/Mataleone)\
**Post date:** [July 30, 2023, 4:04pm UTC](https://forums.unrealengine.com/t/how-do-i-add-custom-events-in-verse-creative-devices/824922/17 "2023-07-30T16:04:19Z")

</div>

I found a workaround on this post:

> [@How do you implement your own listenable in Verse?](https://forums.unrealengine.com/t/how-do-you-implement-your-own-listenable-in-verse/832267/5):
>
> Hello, you can’t initialize a listenable interface inside a class. For now, I recommend exposing an event like the CountdownEndedEvent (for example OnTimerIteration/OnTick) that lets users of the class Await it. You’d then Signal the event when needed. I haven’t played around with it much, but maybe something like this could also be helpful to you: # In this case the functions we accept should take one string parameter and return void. my\_fun := type{\_(:string):void} my\_subscribable := clas…

This is my implementation of a player manager that listen to Spawn Pads and dispatch to subscribers…

```auto
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /Verse.org/Simulation/Tags }
using { /UnrealEngine.com/Temporary/Diagnostics }

SpawnerTag := class(tag){}

players_subscribable_type := type{_(:agent):void}
players_subscribable := class:
    var Subscribers<private>:[]players_subscribable_type = array{}
    Subscribe<public>(Sub:players_subscribable_type):void =
        set Subscribers += array{Sub}
    Dispatch<public>(Player: agent):void =
        for (Sub:Subscribers):
            Sub(Player)

players_manager := class(creative_device):
    var PlayerSpawners : []player_spawner_device = array{}
    var Players : []agent = array{}
  
    OnBegin<override>()<suspends>:void=
        Print("Hello, Players!!")
        # Get all the spawners
        var TaggedSpawners : []creative_object_interface = GetCreativeObjectsWithTag(SpawnerTag{})
        for (TaggedSpawner : TaggedSpawners, Spawner := player_spawner_device[TaggedSpawner]):
            set PlayerSpawners = PlayerSpawners + array{Spawner}
            # Subscribe to each player spawn pad
            Spawner.SpawnedEvent.Subscribe(OnPlayerSpawn)
   
    OnPlayerSpawn(SpawnedPlayer : agent) : void =
        Print("A Player just spawned!")
        set Players = Players + array{SpawnedPlayer}
        # Emit event for subscribers
        PlayerSpawnedEvent.Dispatch(SpawnedPlayer)

    # Custom event
    var PlayerSpawnedEvent<public>:players_subscribable = players_subscribable{}

```

---

<div class="post-metadata">

**Author:** ![swaggod](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/swaggod/32/1051181_2.png) [@swaggod](https://forums.unrealengine.com/u/swaggod)\
**Post date:** [June 9, 2025, 8:40pm UTC](https://forums.unrealengine.com/t/how-do-i-add-custom-events-in-verse-creative-devices/824922/18 "2025-06-09T20:40:30Z")

</div>

Checking back in 2025, is there a way yet to do this? Being able to select my own device events from other creative devices would definitely speed up workflow a good amount.
