I'm trying to get a train's waypoints using GetWay without success. GetWay will return an array of waypoints for vehicles, but not for trains. Any ideas? Is GetWay broken for trains?
Code:
if (groundgroup.GroupType() == AiGroundGroupType.Train)
{
AiWayPoint[] way = groundgroup.GetWay();
}