# AICounterUnitsSameTechAdjusted

FlagsNative

# Arguments

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

Returns — int

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

Category: Unclassified

# Examples

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

    fixed foodUsedPer;
    
    countSameTech = AICounterUnitsSameTechAdjusted(player, c_maxPlayers, what);
    countAnyTech = AICounterUnitsAnyTech(player, c_maxPlayers, what);
    countTotal = countSameTech + countAnyTech;

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

    fixed foodUsedPer;
    
    countSameTech = AICounterUnitsSameTechAdjusted(player, c_maxPlayers, what);
    countAnyTech = AICounterUnitsAnyTech(player, c_maxPlayers, what);
    countTotal = countSameTech + countAnyTech;

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

    fixed foodUsedPer;
    
    countSameTech = AICounterUnitsSameTechAdjusted(player, c_maxPlayers, what);
    countAnyTech = AICounterUnitsAnyTech(player, c_maxPlayers, what);
    countTotal = countSameTech + countAnyTech;