# AICounterUnitsAnyTech

FlagsNative

# Arguments

  • int — player
  • int — testPlayerId
  • string — makeWhat

Returns — int

native int AICounterUnitsAnyTech(
	int player,
	int testPlayerId,
	string makeWhat,
);

Category: Unclassified

# Examples

mods/core.sc2modbase.sc2data/TriggerLibs/MeleeHighAI.galaxy:86

    
    countSameTech = AICounterUnitsSameTechAdjusted(player, c_maxPlayers, what);
    countAnyTech = AICounterUnitsAnyTech(player, c_maxPlayers, what);
    countTotal = countSameTech + countAnyTech;
    countTotal = FixedToInt(countTotal * multiplier);

mods/starcoop/starcoop.sc2modbase.sc2data/TriggerLibs/CampaignAI.galaxy:297

    
    countSameTech = AICounterUnitsSameTechAdjusted(player, c_maxPlayers, what);
    countAnyTech = AICounterUnitsAnyTech(player, c_maxPlayers, what);
    countTotal = countSameTech + countAnyTech;
    countTotal = FixedToInt(countTotal * multiplier);

mods/void.sc2modbase.sc2data/TriggerLibs/MeleeHighAI.galaxy:86

    
    countSameTech = AICounterUnitsSameTechAdjusted(player, c_maxPlayers, what);
    countAnyTech = AICounterUnitsAnyTech(player, c_maxPlayers, what);
    countTotal = countSameTech + countAnyTech;
    countTotal = FixedToInt(countTotal * multiplier);