Warhead
Causes a powerful explosion when triggered. You can use a delay wire to make it explode after a few seconds and not immediately. The only down-side of the warhead is that it is blocked completely by energy shields.
It is a craftable non-flammable solid.
It cannot be resized.
At its default size (9x4x4) it has a durability of 2.
By default, its colour is #5b5d69.
It requires 6 BlastingCap
, 3 EnergyBomb
, 15 Explosive
, 100 Iron
, 1 PlutoniumCore
, 70 Primer
, 75 Reactor
, 1 TriggerWire
, and 800 Uranium
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
.