Author Topic: fxDTSBrick onDestroy  (Read 960 times)

Does anyone know the function that is triggered when a brick is destroyed by a hammer, undo, etc., and the perimeters for that function?

Thanks

fxDTSBrick::killBrick(%brick), isn't it?


fxDTSBrick::killBrick(%brick), isn't it?

This worked, but I found out that fxDTSBrick::delete(%brick) works as well


You would use the .killBrick() method.

If you use .delete() or .onRemove() then it will be called when bricks are cleared, map is changed, server ends, etc.

  • function fxDTSBrick::onDeath(%this)
  • function fxDTSBrick::onRemove(%this)