CrossBeltSorter: RemoveProduct
Called to remove product from the sorter on a specific belt
Function
void RemoveProduct(beltIndex: integer, target: object);
Parameters
Name | Type | Description |
---|---|---|
beltIndex | Integer | The index number of the belt that product will be removed from. See note at the bottom of the page. |
target | Object | The destination equipment object to move the product to. Can be null. |
Return Value
None
Example
var sorter = GetComponentByNameAndType("Sorter1", "Cross Belt Sorter");
var conveyor = GetComponentByNameAndType("Conveyor1", "Conveyor");
sorter.RemoveProduct(2, null); // just remove the product
sorter.RemoveProduct(3, conveyor); // remove the product and induct it on an equipment