Global Events

Every new project is created with three predefined event functions:

You can safely delete those functions if you don’t need them.

function OnSimulationStart()
{
    LogDebug("OnSimulationStart called");
}

function OnSimulationStopping() 
{
    LogDebug("OnSimulationStopping called");
    DeleteAllProducts();
}

function OnSimulationStop()
{
    LogDebug("OnSimulationStop called");
}