Constructor
Similar to an assembler, but constructs a model when triggered. However, the Constructor
must be supplied with the correct materials for a model.
For example, a car model requiring 50 iron and 30 wires will need a bin attached with 50 iron, a bin attached with 30 wires and 100 power.
You can find out how many materials you need through the CalculateModelRecipe
method.
Has a 60 second cooldown to prevent model spamming.
It is a craftable and spawnable non-flammable solid.
It cannot be resized.
At its default size (15x15x15) it has a durability of 1.
By default, its colour is #7e683f.
It requires 5 Assembler
and 10 Copper
to be crafted.
Methods
CalculateModelRecipe()
Configurables
Autolock
Determines if the created model should be locked by the owner of the Constructor. It is a boolean
.
ModelCode
The model data of the model to be created by the Constructor. It is a string
.
RelativeToConstructor
Determines if the created model should be loaded in relative to the orientation of the Constructor. It is a boolean
.
Events
Configured(configurerId)
Fires when the object is configured.
The configurerId parameter is the UserId
of the player who configured the object. 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
.