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