View Single Post
  #1  
Old 10-08-2012, 05:51 AM
salmo salmo is offline
Approved Member
 
Join Date: Mar 2011
Posts: 632
Default Getting train waypoints?

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();
}
__________________
When one engine fails on a two engine bomber, you will always have enough power left to get to the scene of the crash.

Get the latest COD Team Fusion patch info HERE
Reply With Quote