Hi thanks for the response!
I think I found how to reference a variable, just as you have set npc_eliminated_this_wave += 1 and with the variable created outside of OnBegin.
I think I was wondering also, this seems like we make the variable global in some scope so the function can access it without having it passed as a parameter, if that makes sense? I didn’t know if this was bad practice, usually I was taught to avoid setting up global variables. At least we can consider it global in the scope of our creative device verse script, right?
I’m still trying to wrap my head around the canceling subscription thing. Is it like we should aim to do that after every subscribe, for example if we have a game that continues round after round and we want to reset those subscribed events?
My code is working for now, in incrementing and decrementing the NPC number. ![]()