Author Topic: Brick Shift Commands  (Read 742 times)

I just have no clue how to find these; I've searched around, tried messing with some scripts, but I'm clueless how to look for, let alone find, these commands.

What are the serverCmds for moving your brick ghost around?

This one's for moving:
Code: [Select]
servercmdshiftBrick(%client,X,Y,Z); // note: 1 Z is the height of a flat, use 3 Z for the height of a normal brick
in example,
Code: [Select]
servercmdshiftBrick(%client,1,0,3);
Shift the brick away 1 and up 3(3 is for the normal +/5 on keypad raise/lower, and 1 would be for flat(1/3) raise/lower.

Then of course you could
Code: [Select]
for(%i=0;%i<6;%i++){
 servercmdshiftBrick(%client,1,0,3);
 servercmdplantbrick(%client);
}
to place a staircase 5 studs high.


Is that what everything is controlled through, or are there specific commands for keys? I was looking to make something work through the brick shift keys, not actually shift a brick.

The keybinds call functions like shiftBrickAway, which calls commandtoserver('shiftbrick',1,0,0); I assume.

shiftBrickAway
So I could package that to do something else on the buttonpress? It seems to be the simplest way to do it.