Author Topic: Placing a brick inside another brick  (Read 2909 times)

I posted this in modification help but no one replied so:

Is it possible to make a brick that you can build inside on one half but not on the other?

kinda like the zone bricks but you can only build inside one half of the brick.

I tried using the -- on the brick grid but if I place the brick on the air and try to build inside it, it still says the brick is floating.

Anyone knows?

function fxDTSBrick::forcePlant(%this) { %this.isPlanted = 1; %this.plant(); }

After you create the brick, do %brick.forcePlant(); and it will bypass the entire brick error sytem.

function fxDTSBrick::forcePlant(%this) { %this.isPlanted = 1; %this.plant(); }

After you create the brick, do %brick.forcePlant(); and it will bypass the entire brick error sytem.

wouldn't that let me build inside the whole brick? I want to be able to build inside half of the brick

wouldn't that let me build inside the whole brick? I want to be able to build inside half of the brick
well what are you trying to do?

he wants to place bricks inside of other bricks.. but only in half the brick.
he wants the other half to be normal

he wants to place bricks inside of other bricks.. but only in half the brick.
he wants the other half to be normal
yeah this

You could check the position of the brick and then figure out if it's on one side or the other, and if it is then use Brian's fix. Someone will have to elaborate on how to do the position stuff, but I know it's possible.


What I don't understand is the practical use of this, we could probably help you more if we knew what you were trying to do

Even when you figure this out, it wont load next time you start the server.

Even when you figure this out, it wont load next time you start the server.
Couldn't you package onLoadPlant?

Couldn't you package onLoadPlant?
That only gets called if the brick is ever planted in the first place.

Is the function for placing bricks in a save the same as that of manually placing one?

A brick in a save:
Code: [Select]
Vehicle Spawn" -84 21 0.1 0 1 0  0 0 1 1 1
+-OWNER 15335
+-NTOBJECTNAME _dump
+-EVENT 0 1 onActivate 0 Self setEmitter 1000
+-EVENT 1 1 onActivate 0 Self setLight 1156
+-EVENT 2 1 onActivate 0 Self setItem 1006
+-EVENT 3 1 onActivate 0 Self setMusic 1229
+-EVENT 4 1 onActivate 0 Self setVehicle 1022
+-EMITTER Arrow Stick" 0
+-LIGHT aLArm"
+-ITEM Bow" 0 2 1000
+-VEHICLE Jeep " 1

A brick in a script (taken from duplicator)

Code: [Select]
%newBrick = new fxDtsBrick()
{
position  = vectorAdd(%startPos, rotateVector(getWords(%brickStr, 0, 2), %rotChange));
rotation  = $Duplicator::Rotation[%angleId];
dataBlock = $uiNameTable[%dataBlockUiName];
angleId   = %angleId;
colorId   = getWord(%brickStr, 5);
colorFxId = getWord(%brickStr, 7);
shapeFxId = getWord(%brickStr, 8);
isPlanted = 1;
client    = %client;
};
%newBrick.setTrusted(1);
%err = %newBrick.plant();
And then that gets followed by error checking and setting ownership.

What I don't understand is the practical use of this, we could probably help you more if we knew what you were trying to do
im trying to make a brick that you can build on, but not on the top of it but on the sides

so i thought:

     
     ▓▓)‾‾‾|
     ▓▓)___ |

▓ = solid brick

--- = brick wire frame

) = studs