# Get Defense Gather Location

Grammar — Get the default defensive gather location for town town of player player
FlagsNative | Function

Returns the default defensive gather location for a town of a player.

# Arguments

  • int — Player
  • int — Town

Returns — point

native point AIGetGatherDefLocation(int player, int town);

Category: AI Advanced / Towns / Functions

# Examples

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:3205

            }
            else {
                lv_createPosition = AIGetGatherDefLocation(lp_player, -1);
            }
            UnitCreate(1, lv_unitToCreate, 0, lp_player, lv_createPosition, libNtve_gf_RandomAngle());