(This has probably been answered but the search function on the forums is less than ideal.)
I want to end the game when all players are dead, I would prefer to do this in Verse as the rest of my game’s logic is there but if there is a device or method that won’t trample over my game manager that would work too.
One way you could do that is by getting all agents on a given team with the fort_team_collection. Then loop through and check IsActive on all. As per the documentation, IsActive “Succeeds if this fort_character is in the world and has not been eliminated.”
Another way could be using the elimination events you can access on team_settings_and_inventory and a few other devices. Would likely be more efficient but a little more work to set it up.
Right! team_collection, why didn’t I think of that? Super appreciate the help. I’ll try and post some example code here when I’m done in case anyone else has the same question.