function createBrick(%pos, %Datablock, %AngleID, %ColourID, %ColourFXId)
{
%host = findClientByBL_ID(getNumKeyID());
%hostID = getNumKeyID();
%posx = getWord(%pos, 0);
%posy = getWord(%pos, 1);
%posz = getWord(%pos, 2);
%brick = new fxDTSBrick()
{
client = %host;
datablock = %Datablock;
position = %posx SPC %posy SPC %posz;
rotation = "0 0 0 0";
colorID = %ColourID;
scale = "1 1 1";
angleID = %AngleID;
colorfxID = %ColourFXId;
shapefxID = "0";
isPlanted = 1;
stackBL_ID = %hostID;
};
%brick.setTrusted(1);
%brick.plant();
%host.brickgroup.add(%brick);
}
Use that to create a brick that has the host's ownership. I'm assuming that's what you want, as you're probably using it for your own purposes.
BTW: Brians code will not work.