| Blockland Forums > Modification Help |
| Trying to make a brick but it's not appearing.... |
| (1/3) > >> |
| DrenDran:
So I made this function.... --- Code: ---function serverCmdmakeabrick(%client) { messageclient(%client,'',"Hello."); %pxp = mFloor(getWord(%client.player.getTransform(),0)); %pyp = mFloor(getWord(%client.player.getTransform(),1)); %brick = new fxDTSBrick() { client = %client; datablock = "brick4xCubeData"; position = %pxp SPC %pyp SPC "10"; rotation = "0 0 0 0"; colorID = 6; scale = "1 1 1"; angleID = "0"; colorfxID = "0"; shapefxID = "0"; isPlanted = 1; stackBL_ID = %client.BL_ID; }; $server::BrickCount++; } --- End code --- When I type /makeabrick the server's brick count goes up and it says hello but there is no brick to be seen. Can anyone help explain this? |
| Mishka:
you have to call %brink.plant(); after creating it i think |
| DrenDran:
--- Code: ---function serverCmdmakeabrick(%client) { messageclient(%client,'',"Hello."); %pxp = mFloor(getWord(%client.player.getTransform(),0)); %pyp = mFloor(getWord(%client.player.getTransform(),1)); %brick = new fxDTSBrick() { client = %client; datablock = "brick4xCubeData"; position = %pxp SPC %pyp SPC "10"; rotation = "0 0 0 0"; colorID = 6; scale = "1 1 1"; angleID = "0"; colorfxID = "0"; shapefxID = "0"; isPlanted = 1; stackBL_ID = %client.BL_ID; }; %brick.plant(); $server::BrickCount++; } --- End code --- That dose the same thing, can't see the brick. |
| Bauklotz:
This worked for me: --- Code: ---%brk = new fxDTSBrick() { position = ijuststuffbrix; datablock = brick4x4Fdata; }; %brk.plant(); --- End code --- Replace position with what you want though, and datablock too. |
| Ephialtes:
Don't set isPlanted = 1; in the datablock. Don't set stackBL_ID either. You should look at other add-ons for an example of how to do this. There is more to it than what you are doing. |
| Navigation |
| Message Index |
| Next page |