Skip to main content

Explosive

Causes an explosion when triggered. You can use a delay wire to make it explode after a few seconds and not immediately.

It is a craftable and spawnable flammable solid.

Here is a list of possible sizes that reach the maximum malleability (8) that have integer components: 1x8x1, 1x4x2, 2x2x2

At its default size (2x2x2) it has a durability of 2, at its maximum size it has a durability of 3.

By default, its colour is #c4281c.

It requires 10 Cloth and 40 Sulfur to be crafted.

Events


Damaged(damage, damageType, damageSource)

Fires when the object is damaged.

The parameters for Damaged are as follows:

  • The damage parameter is the numerical damage dealt. It is a number.
  • The damageType parameter is the type of damage dealt. It is a string that can be Kinetic or Energy
  • The damageSource parameter is will return a reference to the attacking object, seems to provide references to EnergyGuns, Lasers and Guns, but not Blades or PlasmaCannons, there are other members of these lists that are untested. It is a PilotObject. It can also be nil.

Triggered(otherPart)

Fires when the object is triggered and provides a reference to the part that triggered it.

If a Microcontroller indirectly initiated the triggering of an object, it will return the object rather than the Microcontroller, whereas in the case of directly triggering the object (i.e., calling :Trigger, but not TriggerPort), it will return the microcontroller.

The trigger source remains unchanged if the trigger is sent through something such as an Antenna, but will be set to a RemoteControl if one is present along the trigger line.

The otherPart parameter is the source of the trigger signal. It is a PilotObject.