Skip to main content

Transformer

Sends a constant trigger signal when powered. By default, it will send a trigger signal every tick, but can be configured up to every 360 seconds. If the transformer's loop time matches the game's internal tick rate (the default, 1/s), it will synchronize with the game loop. It is a craftable and spawnable non-flammable solid.

Here is a list of possible sizes that reach the maximum malleability (64) that have integer components: 1x1x64, 1x2x32, 1x4x16, 1x8x8, 2x2x16, 2x4x8, 4x4x4

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

By default, its colour is #000000.

It requires 5 Copper, 1 Iron, and 3 Quartz to be crafted.

Configurables


LoopTime

The time in seconds between triggers. It is a number. It ranges between 0 and 360.

Events


Loop(tickInterval)

Fires when the object is updated by the game loop.

The tickInterval parameter is the inverse of the tick rate. For example, if the tick rate is 20, this will be 1 / 20 (or just 0.05). If the tick rate commands are accessible, running them will change this value. It is a number.


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.