# AIOfferNewScout

FlagsNative

# Arguments

  • int — player
  • unit — u

Returns — bool

native bool AIOfferNewScout(int player, unit u);

Category: Unclassified

# Examples

mods/core.sc2modbase.sc2data/TriggerLibs/MeleeAI.galaxy:337

    // last offer it to the scout synapse
    if (offerToScout) {
        if (AIOfferNewScout(player, u)) {
            return;
        }

mods/liberty.sc2modbase.sc2data/TriggerLibs/Terran/Terran.galaxy:131

    if (type == c_TU_Medivac) {
        if (AINumEnemyBuildings(player) == 0) {
            if (AIOfferNewScout(player, u)) {
                return;
            }

mods/starcoop/starcoop.sc2modbase.sc2data/TriggerLibs/MeleeAI.galaxy:337

    // last offer it to the scout synapse
    if (offerToScout) {
        if (AIOfferNewScout(player, u)) {
            return;
        }

mods/swarm.sc2modbase.sc2data/TriggerLibs/Terran/Terran.galaxy:137

    if (type == c_TU_Medivac) {
        if (AINumEnemyBuildings(player) == 0) {
            if (AIOfferNewScout(player, u)) {
                return;
            }

mods/void.sc2modbase.sc2data/TriggerLibs/Terran/Terran.galaxy:143

    if (type == c_TU_Medivac) {
        if (AINumEnemyBuildings(player) == 0) {
            if (AIOfferNewScout(player, u)) {
                return;
            }

mods/warcoop/warmeleeai.sc2modbase.sc2data/TriggerLibs/MeleeSC.galaxy:137

    if (type == c_TU_Medivac) {
        if (AINumEnemyBuildings(player) == 0) {
            if (AIOfferNewScout(player, u)) {
                return;
            }