# Current Harvester Count

FlagsNative | Function

Returns the current harvester count for this unit. The number of workers that are harvesting to/from the given unit.

# Arguments

  • unit — ParamDef/Name/lib_Ntve_FBF2C5DF

Returns — int

native int UnitCurrentWorkerCount(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));
}