# AICounterUnitsAnyTech
Flags —
Native
# Arguments
int
— playerint
— testPlayerIdstring
— makeWhat
Returns — int
native int AICounterUnitsAnyTech(
int player,
int testPlayerId,
string makeWhat,
);
# Related
Category: Unclassified
# Examples
mods/core.sc2mod — base.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.sc2mod — base.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.sc2mod — base.sc2data/TriggerLibs/MeleeHighAI.galaxy:86
countSameTech = AICounterUnitsSameTechAdjusted(player, c_maxPlayers, what);
countAnyTech = AICounterUnitsAnyTech(player, c_maxPlayers, what);
countTotal = countSameTech + countAnyTech;
countTotal = FixedToInt(countTotal * multiplier);