ConveyorController: SetControlZoneRunning
Called to change the control zone running state
Function
Void SetControlZoneRunning(zoneIndex: integer, running:boolean)
Parameters
Name | Type | Description |
---|---|---|
zoneIndex | Integer | The index of the control zone. The index start with 0. |
running | Boolean | The running state of the control zone. |
Return Value
None
Errors
No error is produced if zoneIndex is outside the control zones array range.
Example
var ccObj = GetComponentByNameAndType("ConveyorController1", "Conveyor Controller");
function OnSimulationStart() {
ccObj.SetControlZoneRunning(0, true);
}