SC2Mapster.com Wiki

SC2 API / Functions / AIGetGroundStartLocs

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.

You must login to post a comment. Don't have an account? Register to get one!

Table of contents

  1. 1 Notes

Facts

Date created
Mar 25, 2010
Last updated
Mar 27, 2010

Authors