ConveyorController: SetControlZoneDeceleration
Called to change the control zone deceleration in milliseconds
🔁 Function
Void SetControlZoneDeceleration(zoneIndex: integer, deceleration:double)
⚙️ Parameters
Name | Type | Description |
---|---|---|
zoneIndex |
Integer | The index of the control zone. The index start with 0. |
deceleration |
Double | The deceleration 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.SetControlZoneDeceleration(0, true);
}