Author Topic: Normal brick and water brick merge.  (Read 1719 times)

I think he wants it so that when he plants the half pipe brick, a water brick automatically plants inside of it, so he does not have to plant both bricks separately.

Code: [Select]
datablock fxDTSBrickData (brick16xWaterData)
{
brickFile = "./16xWater.blb";
category = "Normal brick any";
subCategory = "Normal tall Water";
uiName = "16x Water";
iconName = "Add-Ons/Brick_WaterPack/16xWater";
alwaysShowWireframe = true;
};
datablock fxDTSBrickData(brickNormalData)
{
brickFile = "./Normal.blb";
category = "Normal brick any";
subCategory = " Normal tall";
uiName = "16x16";
iconName = "Add-Ons/Brick_Normal/Normalbrick";
indestructable = 1;
};

But the two line brickFile cannot be work something like this.

Code: [Select]
brickFile = "./16xWater.blb";
brickFile = "./Normal.blb";
« Last Edit: July 21, 2014, 05:44:12 PM by Furling² »



something like this... I place the water brick then my model brick put inside the brick water.

ignore the brick face, I will fix the face later.

In the water brick datablock, set isWaterBrick = 1

isWaterBrick = 1

This is such a stupid implementation. Badspot should have made it a buildingLayer integer or something.

In the water brick datablock, set isWaterBrick = 1
No, I not want my brick as water. I mean two brick, I not want plant one brick water then plant model brick put in the brick water. why not use two bricks same time plant.

like...
Quote
function brickdoubleData::onPlant(%data, %brick)
{
   brickFile = "./16xWater.blb";::onPlant(%data, %brick);
   brickFile = "./Normal.blb";::onPlant(%data, %brick);
}
above the code allow same time two the brick plant then place on the floor. not each plant, place.

This is such a stupid implementation. Badspot should have made it a buildingLayer integer or something.
Yea.. some like buildingLayer as double brick put on the place.

EDIT: I not want waste my time place each one brick water then add model brick put inside the brick water.
« Last Edit: July 12, 2014, 03:48:23 PM by Furling² »

I think he wants it so that when he plants the half pipe brick, a water brick automatically plants inside of it, so he does not have to plant both bricks separately.

I think he wants it so that when he plants the half pipe brick, a water brick automatically plants inside of it, so he does not have to plant both bricks separately.
bingo! this I want!

Doesn't seem necessary. Besides, some people might want to use this brick without water.

Doesn't seem necessary. Besides, some people might want to use this brick without water.
No, It's for water theme park.

You could package ::onPlant and ::onRemove for the main brick, and create/destroy the water brick as a variable.

You could package ::onPlant and ::onRemove for the main brick, and create/destroy the water brick as a variable.
Okay, can you create the script, I make sure you get credit for the code. I am asking to you, please.

Okay, can you create the script, I make sure you get credit for the code. I am asking to you, please.
This is Coding Help, not Code For Me.

I'm sure if you ask nice enough, someone will.

This is Coding Help, not Code For Me.

I'm sure if you ask nice enough, someone will.
I will.