Blockland Forums > Modification Help

How do you clear bricks in a script?

Pages: << < (5/5)

phflack:


--- Quote from: Nexus on June 10, 2012, 01:18:47 AM ---As I like to say, if you can put it in words you can probably put it in script

Why do you want to delete the last save loaded?  If you know the path to the file, you can do filedelete("path"); but deleting files makes nexus sad

--- End quote ---
i think he meant to delete the bricks, not the actual file
in case somebody accidentaly misloaded something
i'm guessing package onloadplant to put the brick IDs into a list which is cleared each time the load begins, so it starts fresh each time
from there all the bricks in the list can be deleted

ScratchTehEPICSpaceDude:


--- Quote from: phflack on June 10, 2012, 01:21:33 AM ---i think he meant to delete the bricks, not the actual file
in case somebody accidentaly misloaded something
i'm guessing package onloadplant to put the brick IDs into a list which is cleared each time the load begins, so it starts fresh each time
from there all the bricks in the list can be deleted

--- End quote ---

Yes this is what I want, but it would be for changing arenas, not for accidents.

Pages: << < (5/5)

Go to full version