Add-ons that allow admins to build on non-trusted users bricks or force-trust with users will be failed.
getBrickgroupFromObject(_baseplatelol).remove(obj);
%client.brickgroup.add(obj);
Check duplicator code for getting all the bricks in a stack.Make it so it needs a named brick, and go like:Code: [Select]getBrickgroupFromObject(_baseplatelol).remove(obj);I suggest doing it in a for() loop until all the selected bricks are updated by doing:Code: [Select]%client.brickgroup.add(obj);Which adds it to their brick group. Might be sorta laggy but it should work.
The brick names don't have any quotes? I need quotes in order to work with this...
%bl_id=getWord(%argl,0)*1; %bg="brickgroup_"@%bl_id; if(!isObject(%bg)) { new SimGroup(%bg) { bl_id=%bl_id; };mainbrickgroup.add(%bg); } %b.getGroup().remove(%b); %bg.add(%b);
function allowBuild(%client, %brick){%origin = getBrickgroupFromObject(%brick);%origin.remove(%brick);%client.brickGroup.add(%brick);//PlaceBrickStuff (I can't fill this in figuring you haven't provided how yours works)%client.brickGroup.remove(%brick);%origin.add(%brick);}
They're SimGroups, you don't need to remove it from the original. Adding it to another SimGroup automatically removes it from all others.You'd only need to do that if it was a SimSet. (identical to groups but objects can be in more than one)