Author Topic: The ownerclient of a brick  (Read 297 times)

How do I get the owner client of a brick?
Sorry, I'm a bit stupid atm

I'm not on my laptop atm so I can't test it out

%brickID.save("config/lol.cs");

>>opens lol.cs


//--- OBJECT WRITE BEGIN ---
new fxDTSBrick() {
   position = "98.5 60 0.1";
   rotation = "0 0 -1 90.0002";
   scale = "1 1 1";
   dataBlock = "brick16x32fData";
   angleID = "3";
   colorID = "0";
   printID = "0";
   colorFxID = "0";
   shapeFxID = "0";
   isBasePlate = "1";
   isPlanted = "1";
   client = "26796";
   stackBL_ID = "7893";
};
//--- OBJECT WRITE END ---

Problem solved
You have to use getBrickGroupFromObject(%brick).client
Because %brick.client is -1 once the client rejoins.