| Blockland Forums > Suggestions & Requests |
| permanently delete fake killed bricks (solvd) |
| << < (3/4) > >> |
| Biqus:
one more thing can this be done with onBlownUp bricks |
| Kyuande:
Yep! |
| Conan:
--- Quote from: Biqus on April 18, 2019, 11:12:57 PM ---one more thing can this be done with onBlownUp bricks --- End quote --- --- Code: ---package deleteOnBlownUp { function FxDTSBrick::onBlownUp(%brick, %a, %b, %c) { %brick.schedule(1000, delete); parent::onBlownUp(%brick, %a, %b, %c); } }; activatePackage(deleteOnBlownUp); --- End code --- |
| phflack:
--- Quote from: speeddog73 on April 18, 2019, 03:01:14 PM ---Doesn’t setting the timer to -1 keep them destroyed? It doesn’t exactly “delete” them, but it keeps them on the floor and still pushable. I don’t see much of a point of physically deleting them, especially if you want to reset it you can just issue a “cancelEvents” event to the namedbrick. It seems easier than rebuilding them and setting up the script again. --- End quote --- last time i was testing, fakekill didn't support -1 and using disappear -1 right after made it flash respawn and fade away |
| Conan:
@phflack -1 for fakekill works, but the fakekilled brick doesnt stick around forever, just for a really long time iirc |
| Navigation |
| Message Index |
| Next page |
| Previous page |