View Single Post
  #50  
Old 01-31-2014, 07:38 PM
Pfeil Pfeil is offline
Approved Member
 
Join Date: Jan 2012
Posts: 126
Default

Quote:
Originally Posted by Pursuivant View Post
All the AI would have to do is refer back to one of two waypoints, rather than having to check the map and do calculations to determine what the closest airfield is, or requiring the mission builder to determine what the plane's "home airfield" is.
From the mission builders perspective, sure.

Though the AI always knows its exact position. Taking the coordinates for a list of airfields(which wouldn't be that long, not over 100 at least) and comparing them to see which is the shortest distance from any given AI's location(or even a whole mission full of AI) is hardly a CPU intensive calculation.

In fact, such a calculation already exists: Runway lighting.
This already determines the nearest friendly base(Try it, it only works in close proximity to airfields, otherwise they're permanently lit).
There is obviously a way to "detect" airfields, so it's quite possible it could be adapted for use by the AI.
Reply With Quote