Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function addGenedBrick(%x, %y, %color, %direction)
- {
- if(%color == 0)
- %color = 26;
- %client = findclientbyBL_ID(getNumKeyID());
- %brick = new fxDTSbrick()
- {
- datablock = Brick1x1fPrintData;
- position = VectorAdd(%x/2 SPC %y/2 SPC "50", $Temple::Position);
- rotation = "0 0 0 0";
- scale = "1 1 1";
- colorID = %color;
- shapefxID = 0;
- printID = 62;
- client = %client;
- stackBL_ID = %client.bl_id;
- isBasePlate = 0;
- };
- $Temple::Map::chunk[%x, %y] = %brick;
- %brick.setTrusted(1);
- %brick.plant();
- if(%brick.isPlanted)
- {
- BrickGroup_17003.add(%brick);
- }
- else
- {
- %brick.delete();
- }
- //17003 is the ID of the client.
- }
- //Snippet from my edit of Script_Temple brick handling using my references from somewhere from the forums.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement