What is needed in a brickgroup?
Just name and ID (If you need, make a new AIConnection to the brickgroup).
if(!isObject(BrickGroup_7893))
{
new SimGroup(BrickGroup_23462)
{
name = "Darren";
bl_id = 7893;
};
MainBrickGroup.add(BrickGroup_7893);
}
Now, if you're going to create a new AI Connection, do that:
%cl = new AIConnection()
{
name = "Server";
bl_id = 1337;
isAdmin = 1; //Only do that Admin Stuff if you're going to make the AI to use /cmds that is admin only
isSuperAdmin = 1; //Do whatever you want with those...
isHost = 1; //Depends if you want...
};
if(!isObject(BrickGroup_1337))
{
new SimGroup(BrickGroup_1337)
{
name = "Server";
bl_id = 1337;
client = %cl;
};
MainBrickGroup.add(BrickGroup_1337);
}
// STUFF
%cl.schedule(100,delete); //If you want...
Now tell me, what are you planning to do with BrickGroups?
Btw, Port explained what you needed.