One-Use Blocks
A block with the ONEUSE feature explodes after it is activated or after it finishes activating depending on whatever feature its coupled with.
For example, a cannon block with ONEUSE will explode after firing, and a laser block with ONEUSE will explode after the laser decays.
{ 17000
features=ONEUSE|CANNON
-- Cannon fields here.
}
{ 17001
features=ONEUSE|LASER
-- Laser fields here.
}
The destruction of a one-use block does not inherently cause damage other blocks, but features like EXPLODE can make them more destructive.
Features which ONEUSE works with:
CANNON: block is destroyed after firing a single bullet. If burst fields are defined, then the block will be destroyed afterroundsPerBurstnumber of bullets have been fired.CANNONandCHARGING: block is destroyed after firing a single bullet. If burst fields is defined, thenONEUSEdoes not function.LASER: block is destroyed after laser finishes decaying. Burst fields do not work withONEUSE, the laser acts as if there are no burst fields.LASERandCHARGING: block is destroyed after laser finishes decaying. Burst fields do not work withONEUSE, the laser acts as if there are no burst fields.LAUNCHER: block is destroyed after firing a single launchable.SHIELD: block is destroyed after shield loses its health.FACTORY: block is destroyed after the command built by the factory finishes growing and is released. (SELFFACTORYandTELESPAWNdo not have this effect. Combinations of different factory fields have no noteworthy effects.).
Because the function of cannon, laser, and shield blocks are dependent on the energy stored by the ship, their destruction because of ONEUSE can be manipulated by controlling energy.