# Ideal Harvester Count

FlagsNative | Function

Returns the ideal harvester count for this unit. The recommended number of workers that should be harvesting to/from the given unit.

# Arguments

  • unit — Unit

Returns — int

native int UnitIdealWorkerCount(unit inUnit);

Category: Unit / Basic

# Examples

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:4282

    // Automatic Variable Declarations
    // Implementation
    return (UnitCurrentWorkerCount(lp_resourceNodeorTownHall) >= UnitIdealWorkerCount(lp_resourceNodeorTownHall));
}