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.
}
Features which ONEUSE
works with:
CANNON
: block is destroyed after firing a single bullet. IfroundsPerBurst
is defined, then the block will be destroyed afterroundsPerBurst
number of bullets have been fired.LASER
: block is destroyed after laser decays.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.