SC2Mapster.com Wiki

AIExpand

native int AIExpand (int player, point searchStart, string firstBuilding);

Search and create an expand.

Parameters

int player

Player number

point searchStart

Location where the AI is going to start the search from

string firstBuilding

Building to produce in the expand. Can be one of

c_TB_CommandCenter_Alias     = "Alias_CommandCenter";
c_PB_Nexus                   = "Nexus";
c_ZB_Hatchery_Alias          = "Alias_Hatchery";

Examples

Example: First expand
int player = 1;
// Tell the AI find an expand starting from it's
// starting location and to build a Nexus there
AIExpand(player, PlayerStartLocation(player), c_PB_Nexus);

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

Facts

Date created
Mar 09, 2010
Last updated
Mar 09, 2010

Author