Port
Only used in programming. Allows a Microcontroller
to interface with PilotObject
s.
To do so, the Port must be between the Microcontroller
and the PilotObject
or Microcontroller
and the EthernetCable
(to interface with objects further away from the Microcontroller
).
It is a craftable and spawnable non-flammable solid.
Here is a list of possible sizes that reach the maximum malleability (27) that have integer components: 1x27x1, 1x9x3, 3x3x3
At its default size (1x1x1) it has a durability of 1, at its maximum size it has a durability of 4.
By default, its colour is #635f62.
It requires 2 Copper
and 2 Silicon
to be crafted.
Configurables
PortID
The ID of this port used to utilize this port by connected Microcontroller
s. It is a number
.
It ranges between 0 and 10000000000. It increments by 1.
Events
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
.