| Blockland Forums > Modification Help |
| Placing a brick inside another brick |
| << < (3/5) > >> |
| Lugnut:
--- Quote from: Chrono on February 28, 2012, 10:48:25 PM ---Even when you figure this out, it wont load next time you start the server. --- End quote --- Couldn't you package onLoadPlant? |
| Chrono:
--- Quote from: Lugnut1206 on February 28, 2012, 11:49:23 PM ---Couldn't you package onLoadPlant? --- End quote --- That only gets called if the brick is ever planted in the first place. |
| Katadeus:
Is the function for placing bricks in a save the same as that of manually placing one? |
| Chrono:
A brick in a save: --- Code: ---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 --- End code --- A brick in a script (taken from duplicator) --- Code: --- %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(); --- End code --- And then that gets followed by error checking and setting ownership. |
| Dante77:
--- Quote from: Lugnut1206 on February 28, 2012, 02:19:08 PM ---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 --- End quote --- 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 |
| Navigation |
| Message Index |
| Next page |
| Previous page |