EnergyBomb
Causes a powerful explosion when triggered. Often used in space combat as a means of a powerful missile or torpedo.
It is a craftable and spawnable non-flammable solid.
It cannot be resized.
At its default size (3x6x3) it has a durability of 2.
By default, its colour is #f8d96d.
It requires 2 BlastingCap
, 5 Explosive
, and 100 Quartz
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
orEnergy
- The damageSource parameter is will return a reference to the attacking object, seems to provide references to
EnergyGun
s,Laser
s andGun
s, but notBlade
s orPlasmaCannon
s, there are other members of these lists that are untested. It is aPilotObject
. It can also benil
.
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
.