Blockland Forums > Modification Help

How do you clear bricks in a script?

Pages: << < (2/5) > >>

Ipquarx:

Okay, well first of all you need to make the function that clears all the bricks, you could just call the /clearallbricks command from the function but there may be a better way, not entirely sure.

ScratchTehEPICSpaceDude:


--- Quote from: Ipquarx on June 07, 2012, 09:13:54 PM ---Okay, well first of all you need to make the function that clears all the bricks, you could just call the /clearallbricks command from the function but there may be a better way, not entirely sure.

--- End quote ---

I know a little torquescript. I know how to format functions, but what's the code to call /clearallbricks and how do you make it into an event?

Nexus:

servercmdclearallbricks(%client);

To make it an event it very straightforward, just copy any output event and replace the output script with this.

ScratchTehEPICSpaceDude:


--- Quote from: Nexus on June 07, 2012, 09:57:15 PM ---servercmdclearallbricks(%client);

To make it an event it very straightforward, just copy any output event and replace the output script with this.

--- End quote ---

Oh thank you so much!

jes00:


--- Quote from: Nexus on June 07, 2012, 09:57:15 PM ---servercmdclearallbricks(%client);

To make it an event it very straightforward, just copy any output event and replace the output script with this.

--- End quote ---
But won't that check for admin or super admin? He wants host only.

Pages: << < (2/5) > >>

Go to full version