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

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:

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

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

Thanks in advance!

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

2 Likes

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