AIGetGroundStartLocs
int AIGetGroundStartLocs(point loc);
The number of starting locations that are ground accessible from point loc.
Parameters
- point loc
The point to start from.
Return value
int - The number of ground accessible starting points that are accessible. Will not include point loc itself if it is a starting location.
Examples
- Example: Air Map?
point myStartingLocation = PlayerStartLocation(player); int numStartLocations = AIGetGroundStartLocs(myStartingLocation); if (numStartLocations < 1) { // Air map, race to air tech. } else { // Ground map, defend against ground units. }
Notes
- Obstructions such as destructible rocks are not considered to interfere with ground accessibility for the purposes of this function.