# AIGetDropoffWithFewestGuards
Flags —
Native
# Arguments
int
— playerstring
— guardType
Returns — unit
native unit AIGetDropoffWithFewestGuards(
int player,
string guardType,
);
# Related
Category: Unclassified
# Examples
mods/liberty.sc2mod — base.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.sc2mod — base.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.sc2mod — base.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);