# AIFoodCost

FlagsNative

# Arguments

  • int — player
  • string — aliasUnitType

Returns — fixed

native fixed AIFoodCost(int player, string aliasUnitType);

Category: Unclassified

# Examples

mods/core.sc2modbase.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.sc2modbase.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.sc2modbase.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