So, I need a list of all clients in a minigame to use often. The following code works well for me:
%clientCount = clientGroup.getCount();
for(%i=0;%i<%clientCount;%i++)
{
%clObj = clientGroup.getObject(%i);
if(%minigame == getMinigameFromObject(%clObj))
//Do stuff
}
However, I always strive for optomization in my scripts. I'm using this in a loop to update a bottomprint for individual clients in a minigame. I know I could package the function when clients leave or join a minigame, but I was wondering if there was already something default that handled a dynamic minigame client list, possibly named minigameClientGroup