ConveyorController: SetControlZoneAcceleration

Called to change the control zone acceleration in milliseconds

Function

Void SetControlZoneAcceleration(zoneIndex: integer, acceleration:double)

Parameters

Name Type Description
zoneIndex Integer The index of the control zone. The index start with 0.
acceleration Double The acceleration in milliseconds.

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.SetControlZoneAcceleration(0, true);
}