Blockland Forums > Suggestions & Requests
permanently delete fake killed bricks (solvd)
speeddog73:
Ah ok, jes’ script should do the trick then
(ngl tho that’s a goodass idea)
Conan:
jes’ script is just an event that deletes a bruck, not deleting on fakekill. if you want to delete fakekilled bricks you need this:
--- Code: ---package deleteOnFakekill {
function FxDTSBrick::fakekillBrick(%brick, %velocity, %time) {
%brick.schedule((%time - 1) * 1000, delete);
parent::fakekillBrick(%brick, %velocity, %time);
}
};
activatePackage(deleteOnFakeKill);
--- End code ---
speeddog73:
--- Quote from: Conan on April 18, 2019, 03:26:13 PM ---jes’ script is just an event that deletes a bruck, not deleting on fakekill. if you want to delete fakekilled bricks you need this:
--- Code: ---package deleteOnFakekill {
function FxDTSBrick::fakekillBrick(%brick, %velocity, %time) {
%brick.schedule((%time - 1) * 1000, delete);
parent::fakekillBrick(%brick, %velocity, %time);
}
};
activatePackage(deleteOnFakeKill);
--- End code ---
--- End quote ---
this is why i wish i knew how to script
I would compile this into an addon zip but I feel like I'd forget it up. How do you do it from a script, just throw it into a server.cs and do the other addon stuff and make a Script_whatever?
jes00:
--- Quote from: speeddog73 on April 18, 2019, 04:37:47 PM ---this is why i wish i knew how to script
I would compile this into an addon zip but I feel like I'd forget it up. How do you do it from a script, just throw it into a server.cs and do the other addon stuff and make a Script_whatever?
--- End quote ---
Yep.
https://www.dropbox.com/s/5crlrkvqjmtl6os/Script_DeleteFakeKillBricks.zip?dl=1
Biqus:
thank you very much dude