How to get notify when a client joints or leaves the server?

I am trying to get all the players that are there in the server .Currently I am using get All Actor Of Class node on every 2 seconds as my game requires them all to compare their attributes and then rank them accordingly . but its lagging due to it . So is there a way to get the player that joins the server and store it and when player leaves, it fires an event to let the server know a player has left and clear the space .

U can use the GameMode Login/Logout methods for that.
For getting the connected played list u can use the GameState PlayerArray property instead of iterating trough the game actors

1 Like

I really appreciate the help, hey could You also direct me to where I can get more information about those. Thanks.