# AIFoodCost
Flags —
Native
# Arguments
int
— playerstring
— aliasUnitType
Returns — fixed
native fixed AIFoodCost(int player, string aliasUnitType);
# Related
Category: Unclassified
# Examples
mods/core.sc2mod — base.sc2data/TriggerLibs/MeleeHighAI.galaxy:98
}
foodUsedPer = AIFoodCost(player, what);
if (IntToFixed(countTotal) * foodUsedPer > 48.0) {
// don't make too much food of any one unit in the counter logic
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/CampaignAI.galaxy:309
}
foodUsedPer = AIFoodCost(player, what);
if (IntToFixed(countTotal) * foodUsedPer > 48.0) {
// don't make too much food of any one unit in the counter logic
mods/void.sc2mod — base.sc2data/TriggerLibs/MeleeHighAI.galaxy:98
}
foodUsedPer = AIFoodCost(player, what);
if (IntToFixed(countTotal) * foodUsedPer > 48.0) {
// don't make too much food of any one unit in the counter logic