Physics Conveyor: OnTargetSpeedReached

Invoked when the physics 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 PhysicsConveyor The physics conveyor associated with the changed property
speed TargetSpeed The target speed that the conveyor reached

Example

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