C#'s "this" how to in Verse?

Context: I want to make a bomb planting/defusing system, much like in the template one that people use. The thing I want to change is: the template “hardcodes” a bomb A and a bomb B and I want to make the system expandable by having a list/array of bombs that can be planted/defused/exploded, and when those bombs explode the round ends.

This is basically my first day of Verse but I work with games for 5 years, my idea was to separate the devices into a standalone bomb_device that works on its own by simply exploding and triggering a “BombExplosionEvent” that I created. That said, I also have a “bomb_controller_device” that holds a list/array of bombs, while I know that I don’t need to reference them in order to Await() the event and I managed to await the event, I want to send which bomb exploded in said event. If one of the bombs explode, I would trigger the round end.

In verse the C# “this” keyword should be “Self” if that is what you are looking for,

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.