Author Topic: Load bricks with a custom ID?  (Read 480 times)

Are you able to load bricks with a different ID/brickgroup?

Im pretty sure there's a way to get an AIConnection to load bricks without ownership, thus making the AI the owner of the bricks. Alternatively you could look at loading the save yourself, take a look at BVSS in System_BlocklandEssentials.

You could try loading the bricks first without ownership, then loop thru and add them to a custom brickgroup

Not sure if you can set that with the default load function. That would be nice.

possibly parent onLoadPlant to do goofy stuff?

Oh.. I think there is a global variable that changes it. Like $LoadingBricks_BLID I think

Oh.. I think there is a global variable that changes it. Like $LoadingBricks_BLID I think
I believe that you can change $LoadingBricks::BrickGroup to something else.

edit:
These are the available $LoadingBricks variables:
Code: [Select]
$LoadingBricks_BrickGroup = "27739";
$LoadingBricks_Client = "";
$LoadingBricks_ColorMethod = "";
$LoadingBricks_DirName = "0";
$LoadingBricks_FileName = "saves/[CTF] BattleHall.bls";
$LoadingBricks_HandShakeSchedule = 0;
$LoadingBricks_Ownership = "1";
$LoadingBricks_PositionOffset = "0 0 0";
$LoadingBricks_Silent = 0;
$LoadingBricks_StartTime = "1445689";

I got this list by running export("$LoadingBricks*","base/loadingbricks.txt"); after loading a build.

You might also want to look at the serverLoadSaveFile_Tick() function.