Hello!
I am trying to destroy a row of walls automatically via my code, but when the command runs the walls are still standing.
Here is my code:
private void dropwalls()
{
if (!haswallsdropped)
{
foreach (SimpleBuildingBlock b in highwalls)
{
b.Kill();
}
Puts("Walls have been destroyed");
highwalls.Clear();
haswallsdropped = true;
}
}
Should I use a different method for destroying them? Could it be it just isn't updating client side?
[DOUBLEPOST=1465078565][/DOUBLEPOST]Nevermind, turned out my plugin was loading before the map could even generateMade the walls load after 30 seconds and problem was solved.
SimpleBuildingBlock.Kill() doesn't do anything
Discussion in 'Rust Development' started by The FSM, Jun 4, 2016.

Made the
walls load after 30 seconds and problem was solved.