Quote:
Originally Posted by FG28_Kodiak
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();
}
}
}
|
hey kodiak,.....i dont know, but for me, it doesnt seem to work.
i created a mission, with a train, a tank and another vehicle, and neither of them seem to get destroyed if they reach their last waypoint....

Ps:what do you mean with trailers?