# AIGetDropoffWithFewestGuards

FlagsNative

# Arguments

  • int — player
  • string — guardType

Returns — unit

native unit AIGetDropoffWithFewestGuards(
	int player,
	string guardType,
);

Category: Unclassified

# Examples

mods/liberty.sc2modbase.sc2data/TriggerLibs/Zerg/Zerg.galaxy:113

    }
    if (type == c_ZU_Queen) {
        drop = AIGetDropoffWithFewestGuards(player, c_ZU_Queen);
        if (drop == c_nullUnit) {
            AIWaveAddUnitPriority(AIWaveGet(player, c_waveHome), u, c_prioWavePeon);

mods/swarm.sc2modbase.sc2data/TriggerLibs/Zerg/Zerg.galaxy:119

    }
    if (type == c_ZU_Queen) {
        drop = AIGetDropoffWithFewestGuards(player, c_ZU_Queen);
        if (drop == c_nullUnit) {
            AIWaveAddUnitPriority(AIWaveGet(player, c_waveHome), u, c_prioWavePeon);

mods/void.sc2modbase.sc2data/TriggerLibs/Zerg/Zerg.galaxy:125

    }
    if (type == c_ZU_Queen) {
        drop = AIGetDropoffWithFewestGuards(player, c_ZU_Queen);
        if (drop == c_nullUnit) {
            AIWaveAddUnitPriority(AIWaveGet(player, c_waveHome), u, c_prioWavePeon);