That wont let me place at all?!
At all or only when force planting?
Code: [Select]Parent::servercmdPlantbrick(%brick);
Parent::servercmdPlantbrick(%brick);
This lets me plant bricks, but not force plant
function serverCmdFPToggle(%client) {if(isObject(%client.player)) { if(%client.isForcePlacing){ %client.chatmessage("<color:ffffff>ForcePlace is on!"); %client.isForcePlacing = 0;} else { %client.chatmessage("<color:ffffff>ForcePlace is off!"); %client.isForcePlacing = 1;} }}package forcePlant {function serverCmdPlantBrick(%client){if(%client.isForcePlanting){%temp = %client.player.tempBrick;%temp.setName("CopyBrick");%brick = new fxDTSBrick(:CopyBrick){isPlanted = 1;};%tempBrick.setName("");%brick.setTrusted(1);%brick.plant();return;}Parent::servercmdPlantbrick(%client);}};activatePackage(forcePlant);
Oh, duh. I left that line alone from your code. Didn't notice.Code: [Select]-snip-This works for me (I fixed a small issue but it should have still planted). Are you sure you're toggling FP on?
-snip-
on and off are swappedAlso, This doesn't work for me...I can place bricks normally, but not floating or inside other bricks...
Oh, duh. You're setting %client.forcePlacing = 1; in serverCmdFPToggle and checking %client.forcePlanting in serverCmdPlantBrick. The reason it worked for me was because I manually set the value.
* MARBLE MAN has just died after doing this:
function serverCmdFPToggle(%client) {if(isObject(%client.player)) { if(%client.isForcePlanting){ %client.chatmessage("<color:ffffff>ForcePlant is now off!"); %client.isForcePlanting = 0;} else { %client.chatmessage("<color:ffffff>ForcePlant is now on!"); %client.isForcePlanting = 1;} }}package forcePlant {function serverCmdPlantBrick(%client){if(%client.isForcePlanting){%temp = %client.player.tempBrick;%temp.setName("CopyBrick");%brick = new fxDTSBrick(:CopyBrick){isPlanted = 1;};%tempBrick.setName("");%brick.setTrusted(1);%brick.plant();return;}Parent::servercmdPlantbrick(%client);}};activatePackage(forcePlant);
Why would you do that after I told you my way worked?Anyway, in case you didn't figure it out:
Why would you do that after I told you my way worked?Anyway, in case you didn't figure it out:Code: [Select]-codesnip-
-codesnip-
Correct me if I'm wrong, but, doesn't this cause the bricks that you plant to have no owner, or, be outside of the main brickgroup?