View Single Post
  #10  
Old 06-18-2012, 07:41 AM
David198502's Avatar
David198502 David198502 is offline
Approved Member
 
Join Date: Dec 2009
Location: Austria
Posts: 1,536
Default

Quote:
Originally Posted by FG28_Kodiak View Post
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?
__________________
Reply With Quote