Is there a way to keep track of players joining and leaving a multiplayer game with blueprint? I’ve tried using “get all actors of class”, but I don’t want that running every tick, and that always seem to give me a incorrect number compared to how many client that are actually connected. Anyone had a similar problem or found a solution for this?
I has not test this idea yet, but if you have a event/function to RunOnServer, then the amount of your PlayerController BP is the amount of player(including listen server) connected.
If you want to keep tracking, then I think EvenPostLogin in GameMode(return a controller) and EventDestroyed in PlayerController can be your way to keep accounting player in and out without tick update with that function.