ConveyorController: SetControlZoneAccumulate
Called to change the control zone accumulate state
Function
Void SetControlZoneAccumulate(zoneIndex: integer, accumulate:boolean)
Parameters
Name | Type | Description |
---|---|---|
zoneIndex | Integer | The index of the control zone. The index start with 0. |
accumulate | Boolean | The accumulation 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.SetControlZoneAccumulate(0, true);
}