Skip to main content

Controller

Alters the speed of attached controllable objects which include:

  • Engine
  • Motor
  • BallastTank
  • IonDrive
  • IonRocket
  • Thruster
  • Rocket

You must use a polysilicon between this controller and an object that emits a trigger signal (such as a button) to use the same events as clicking the interface. For example, FlipFlop will set the speed of the controllable objects to 0, Deactivate will subtract 5 from the current speed, etc.

It is a craftable and spawnable non-flammable solid.

Here is a list of possible sizes that reach the maximum malleability (169) that have integer components: 1x169x1, 1x13x13

At its default size (4x4x1) it has a durability of 6, at its maximum size it has a durability of 14.

By default, its colour is #868587.

It requires 2 Iron and 4 TriggerWire to be crafted.

Events


Loop(deltaTime)

Fires when the object is updated by the game loop.

The deltaTime parameter is the 'time' since the last tick, it does not represent the actual time since the last tick was occurred, rather just how often a game tick should be fired (it will always be precisely 1). 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.