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