Groundactors seems are only counted if reached endpoint.
Ok seems to work, but not for trailers. :\
Code:
public override void OnActorTaskCompleted(int missionNumber, string shortName, AiActor actor)
{
base.OnActorTaskCompleted(missionNumber, shortName, actor);
if (actor is AiGroundGroup)
{
foreach (AiActor ac in (actor as AiGroundGroup).GetItems())
{
(ac as AiCart).Destroy();
}
}
}