Author Topic: How do you clear bricks in a script?  (Read 1736 times)

Oh shoot! I forgot it would delete the brick with all the events for my server! How do you make it clear a BRICK GROUP?

Use serverCmdClearBrickGroup( %client, brick group BL_ID );

Oh shoot! I forgot it would delete the brick with all the events for my server! How do you make it clear a BRICK GROUP?
If its an event couldnt you just place another brick and do the event?

If its an event couldnt you just place another brick and do the event?


But my server is auto.


Ok so last question: Is there any way I can delete the last save loaded?

But my server is auto.


Ok so last question: Is there any way I can delete the last save loaded?

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

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
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

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

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