FourthOfJuly
Causes an explosion when triggered along with a Fourth Of July message. You can use a delay wire to make it explode after a few seconds and not immediately.
It is a 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 #1b2a35.
It requires 10 Cloth
and 20 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
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
.