View Single Post
  #8  
Old 05-08-2012, 10:54 AM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

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();
            }
        }
    }

Last edited by FG28_Kodiak; 05-08-2012 at 10:56 AM.
Reply With Quote