In Cash Tycoon 2, they are able to get a list of players in the current session. You can add/remove access to your claimed base. I’ve been searching for days trying to figure out how they do this.
Any ideas?
That’s just Participants := GetPlayspace().GetParticipants()
It includes test players too (you can filter by casting to player[Participant] to check if target is a real player or not, for example to add UIs and do other player-limited gameplay interactions)
There is also Players := GetPlayspace().GetPlayers(), but I don’t recommend this because this will make development complex on long term, does not support test players and so on