Physics Conveyor: OnProductRemoved
Invoked when a product is removed to the physics conveyor.
Note: This event does not support multiple subscription.
Event
void xxxxxxxxxxxxxxxxx(sender: object, product: Product);
Parameters
Name | Type | Description |
---|---|---|
sender | Object | The physics conveyor |
product | Product | The removed product |
Example
// Print a message whenever a new product leaves PhysicsConveyor1.
function PrintProductNameRemoved(conveyor, product)
{
LogDebug(`Product '${product.Name}' removes from conveyor '${conveyor.Name}'.`);
}
SubscribeToEvent("OnProductRemoved", "PhysicsConveyor1", "Physics Conveyor", PrintProductNameRemoved);