Conveyor: OnTargetSpeedReached

Invoked when the conveyor reaches the speed set by the TargetSpeed property.

When the conveyor is stopping, the target speed is zero and thus this will be called when the conveyor stops. Likewise, when the conveyor is accelerating the target speed will be the speed it’s accelerating towards and this will be called when the conveyor reaches that speed.

Event

    void xxxxxxxxxxxxxxxxx(sender: object, speed: TargetSpeed);

Parameters

Name Type Description
sender Conveyor The conveyor associated with the changed property
speed TargetSpeed The target speed that the conveyor reached

Example

SubscribeToEvent("OnTargetSpeedReached", "Conveyor1", "Conveyor", OnTargetSpeedReached_Conveyor1);
...
function OnTargetSpeedReached_Conveyor1(sender,speed)
{
    LogDebug("Callback is called")
}