Accesses data dealing with a conveyor's slug building state
This object can be accessed through the Conveyor.slugBuilder property, or through the Conveyor.MergeController.lanes property.conveyor | Returns the conveyor associated with this slug builder |
isClear | Returns 1 if all necessary control points are clear for the current slug to be released, 0 otherwise. |
isEnabled | Gets or sets whether the conveyor associated with this slugBuilder will build slugs. |
lastAddedItem | Gets the item that was last added to the slug. |
state | Gets the slug-building state of the slug builder |
makeReady | Manually marks the slug ready for release |
release | Manually releases a slug. |
readonly Conveyor conveyor
Returns the conveyor associated with this slug builder
Conveyor c = slugBuilder.conveyor;
readonly int isClear
Returns 1 if all necessary control points are clear for the current slug to be released, 0 otherwise.
if (slugBuilder.isClear) slugBuilder.release();
int isEnabled
Gets or sets whether the conveyor associated with this slugBuilder will build slugs.
Before disabling, be sure that the lane does not have a slug.slugBuilder.isEnabled = 1;
readonly Object lastAddedItem
Gets the item that was last added to the slug.
readonly int state
Gets the slug-building state of the slug builder
0 - NonemakeReady( ) |
Manually marks the slug ready for release
This method can be used to make a slug ready before it would otherwise become ready.slugBuilder.makeReady();
release( ) |
Manually releases a slug.
Can be used to release a slug, disreguarding ready requirements and lane clear requirements.slugBuilder.release()