ConveyorController: SetControlZoneSpeedPercent

Called to change the control zone speed percentage

🔁 Function

Void SetControlZoneSpeedPercent(zoneIndex: integer, speedPercent:double)

⚙️ Parameters

Name Type Description
zoneIndex Integer The index of the control zone. The index start with 0.
speedPercent Double The speed in percentage of the control zone max speed.

↩️ 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.SetControlZoneSpeedPercent(0, 90);
}