I want to access the await function of the event from a different class so that when it’s signaled in my other class the function awaiting the signal can proceed.
I’ve used them once or twice in the same class but never across multiple before.
The syntax is pretty simple
But you could do something simple like
EventName : event() = event(){}
var x : int = 0
OnBegin<override>()<suspends>:void=
CheckInt()
branch:
WaitingForEvent()
CheckInt():void=
if(x > 2):
random expression
random expression
EventName.Signal()
WaitingForEvent()<suspends>:void=
EventName.Await()
#whatever you want to happen after the event is signaled
Or if you want to access it from another class do what PiEqualsThree Said and create an instance of the class you want to reference it from in the class you’re working in and then you can await the signal in other places too!