Subscribing to creative device custom events?

I have a custom device that can trigger a cinematic, I need to signal an event when that happens. I’ve looked all over but it seems as if custom creative device events can’t be subscribed to? How can I call a function when this event is signalled?

Bump

You can absolutely do this. There is an example within the ‘Custom Countdown Timer’ tutorial (under the ‘Signaling Countdown Timer Ending’ section). Essentially, you create a custom event with MyEvent : event() = event(){}, trigger the custom event with MyEvent.Signal(), and then block the execution elsewhere until the custom event has been triggered with MyEvent.Await(). I hope that helps!

1 Like

Thank you! I saw that which is where I found out you can make custom events but it seems a bit confusing to me that we don’t have access to subscribe functionality, it means I have to think about how the code will work a bit differently.

Does anyone know if it’s possible to create a custom event which can have an event listener function passed to Subscribe?

@le-8g7e Check out this video Subscribing and Binding Functions to Device Events in the Verse Language

Also that same channel has some other great videos worth checking out. He made this website that has all the verse tutorials :
http://mehrpouya.us/#

Thanks, I’m already familiar with subscribing to evens on UEFN devices but what I’m after is the ability to create my own event through code, preferably with a generic type signature on the listener function. There seems to be one way to do this that I’ve seen but it only seems to give you an Await function and not a Subscribe