# Unit Order
Grammar — unit order at index index
Flags —Native
|Function
Returns an order for a unit.
# Arguments
unit
— Unitint
— Index
Returns — order
native order UnitOrder(unit inUnit, int inIndex);
# Related
Category: Unit / Orders
- Triggering Order —
order
— EventUnitOrder - Issue Order —
bool
— UnitIssueOrder - Issue Order To Unit Group —
bool
— UnitGroupIssueOrder - Unit Order Count —
int
— UnitOrderCount - Unit Order —
order
— UnitOrder - Unit Order Is Acquired —
bool
— UnitOrderIsAcquired - Unit Has Order With Ability —
bool
— UnitOrderHasAbil - Unit Is Issued Order —
void
— TriggerAddEventUnitOrder - Unit Becomes Idle —
void
— TriggerAddEventUnitBecomesIdle - Wait Until Unit Becomes Idle —
void
— UnitWaitUntilIdle - Wait Until Unit Group Becomes Idle —
void
— UnitGroupWaitUntilIdle - Unit Rally Point —
int
— UnitRallyPoint - Unit Rally Point Count —
int
— UnitRallyPointCount - Unit Rally Point Target Count —
int
— UnitRallyPointTargetCount - Unit Rally Point Target Point —
point
— UnitRallyPointTargetPoint - Unit Rally Point Target Unit —
unit
— UnitRallyPointTargetUnit - Unit Order Get Progress —
fixed
— UnitOrderGetProgress
# Examples
campaigns/liberty.sc2campaign — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:50
}
curOrd = UnitOrder(aiUnit, 0);
if ((curOrd != null) && !AIIsAttackOrder(curOrd)) {
// don't cast again if casting
campaigns/liberty.sc2campaign — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:63
numPossibleThreats = numPossibleThreats - 1;
enemyOrd = UnitOrder(unitToCheck, 0);
if (AIIsAttackOrder(enemyOrd) && OrderGetTargetUnit(enemyOrd) == aiUnit) {
numActualThreats = numActualThreats + 1;
campaigns/liberty.sc2campaign — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:90
numPossibleThreatsInBarrage = numPossibleThreatsInBarrage - 1;
enemyOrd = UnitOrder(unitToCheck, 0);
if (AIIsAttackOrder(enemyOrd) && OrderGetTargetUnit(enemyOrd) == aiUnit) {
numActualThreatsInBarrage = numActualThreatsInBarrage + 1;
campaigns/liberty.sc2campaign — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:119
}
curOrd = UnitOrder(aiUnit, 0);
if ((curOrd == null) && AIIsAttackOrder(curOrd)) {
return;
campaigns/liberty.sc2campaign — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:227
// Only cast as part of an existing offensive.
//
if (!AIIsAttackOrder(UnitOrder(aiUnit, 0))) {
return null;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:831
// Implementation
lv_colonist = UnitGroupRandomUnit(UnitGroup("Colonist", c_playerAny, lp_locale, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
if (((lv_colonist == null) || (UnitOrder(lv_colonist, 0) != null))) {
return ;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:2231
for ( ; ( (autoB5362C4D_ai >= 0 && lv_colonyIndex <= autoB5362C4D_ae) || (autoB5362C4D_ai < 0 && lv_colonyIndex >= autoB5362C4D_ae) ) ; lv_colonyIndex += autoB5362C4D_ai ) {
lv_feederling = UnitGroupRandomUnit(UnitGroup("Feederling", gv_p07_ZERG_INFESTED, gv_infestationRegion[lv_colonyIndex], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
if ((lv_feederling != null) && (UnitOrder(lv_feederling, 0) == null)) {
lv_egg = UnitGroupRandomUnit(UnitGroup(gv_eGG_UNIT, c_playerAny, gv_infestationRegion[lv_colonyIndex], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
if ((lv_egg != null)) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:4726
if ((gv_inCinematic == true)) {
lv_feederling = UnitGroupRandomUnit(UnitGroup("Feederling", gv_p07_ZERG_INFESTED, gv_infestationRegion[2], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
if ((lv_feederling != null) && (UnitOrder(lv_feederling, 0) == null)) {
for (autoF17949B3_i = 1; autoF17949B3_i <= autoF17949B3_n; autoF17949B3_i += 1) {
lv_hut = UnitGroupRandomUnit(UnitGroup("InfestableHut", c_playerAny, gv_infestationRegion[2], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:3677
lv_orderIndex = 0;
for ( ; ( (auto08C32D67_ai >= 0 && lv_orderIndex <= auto08C32D67_ae) || (auto08C32D67_ai <= 0 && lv_orderIndex >= auto08C32D67_ae) ) ; lv_orderIndex += auto08C32D67_ai ) {
lv_order = UnitOrder(lp_unit, lv_orderIndex);
if ((AbilityCommandGetAbility(OrderGetAbilityCommand(lv_order)) == "move")) {
return OrderGetTargetPoint(lv_order);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:20937
lv_lastActionType = gv_bGActors[lv_bGActorID].lv_nodes[lv_lastNodeID].lv_type;
if ((OrderGetAbilityCommand(UnitOrder(gf_GetBGActor(lv_bGActorID), 0)) != AbilityCommand("move", 1))) {
Wait(0.125, c_timeGame);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:1993
}
if (!((OrderGetTargetUnit(UnitOrder(EventUnit(), 0)) != gv_terrazineHarvesting))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:313
}
if ((UnitOrder(lp_worker, 0) != null)) {
return ;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:2749
lv_driver = UnitGroupUnitFromEnd(autoC4A62E5D_g, autoC4A62E5D_u);
if (lv_driver == null) { break; }
if ((UnitOrder(lv_driver, 0) == null)) {
if ((libNtve_gf_UnitInRegion(lv_driver, RegionFromId(13)) == true)) {
lv_targetDiamondback = libNtve_gf_ClosestUnitToPoint(UnitGetPosition(lv_driver), gv_nonActivatedDiamondbacks);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus05.sc2map/MapScript.galaxy:2363
}
if (!((UnitOrder(gv_uNITDaMothership, 0) == null))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:5781
auto937566B9_var = UnitGroupUnitFromEnd(auto937566B9_g, auto937566B9_u);
if (auto937566B9_var == null) { break; }
if ((UnitGetCustomValue(auto937566B9_var, 0) >= 1.0) && (UnitOrder(auto937566B9_var, 0) == null)) {
UnitIssueOrder(auto937566B9_var, OrderTargetingPoint(AbilityCommand("move", 0), UnitGetPosition(UnitGroupRandomUnit(UnitGroup("Egg", c_playerAny, gv_feederlingRegions[FixedToInt(UnitGetCustomValue(auto937566B9_var, 0))], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive))), c_orderQueueReplace);
UnitIssueOrder(auto937566B9_var, OrderTargetingPoint(AbilityCommand("move", 0), UnitGetPosition(UnitGroupRandomUnit(UnitGroup("Egg", c_playerAny, gv_feederlingRegions[FixedToInt(UnitGetCustomValue(auto937566B9_var, 0))], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive))), c_orderQueueAddToEnd);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:7683
auto5B595CD1_var = UnitGroupUnitFromEnd(auto5B595CD1_g, auto5B595CD1_u);
if (auto5B595CD1_var == null) { break; }
if ((UnitGetCustomValue(auto5B595CD1_var, 0) >= 1.0) && (UnitOrder(auto5B595CD1_var, 0) == null)) {
UnitIssueOrder(auto5B595CD1_var, OrderTargetingPoint(AbilityCommand("move", 0), UnitGetPosition(UnitGroupRandomUnit(lv_cocoons, c_unitCountAlive))), c_orderQueueReplace);
UnitIssueOrder(auto5B595CD1_var, OrderTargetingPoint(AbilityCommand("move", 0), UnitGetPosition(UnitGroupRandomUnit(lv_cocoons, c_unitCountAlive))), c_orderQueueAddToEnd);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02b.sc2map/MapScript.galaxy:519
}
else {
if ((OrderGetAbilityCommand(UnitOrder(lv_defender, 0)) != AbilityCommand("attack", 0)) && (OrderGetAbilityCommand(UnitOrder(lv_defender, 0)) != AbilityCommand("move", 3)) && (OrderGetAbilityCommand(UnitOrder(lv_defender, 0)) != AbilityCommand("move", 0)) && (UnitGroupCount(lv_nearbyEnemies, c_unitCountAlive) > 0) && (UnitGetOwner(lv_defender) == gv_pLAYER_P08_MUTALISK_TOWERS)) {
UnitIssueOrder(lv_defender, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupRandomUnit(lv_nearbyEnemies, c_unitCountAlive))), c_orderQueueReplace);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02b.sc2map/MapScript.galaxy:519
}
else {
if ((OrderGetAbilityCommand(UnitOrder(lv_defender, 0)) != AbilityCommand("attack", 0)) && (OrderGetAbilityCommand(UnitOrder(lv_defender, 0)) != AbilityCommand("move", 3)) && (OrderGetAbilityCommand(UnitOrder(lv_defender, 0)) != AbilityCommand("move", 0)) && (UnitGroupCount(lv_nearbyEnemies, c_unitCountAlive) > 0) && (UnitGetOwner(lv_defender) == gv_pLAYER_P08_MUTALISK_TOWERS)) {
UnitIssueOrder(lv_defender, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupRandomUnit(lv_nearbyEnemies, c_unitCountAlive))), c_orderQueueReplace);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02b.sc2map/MapScript.galaxy:519
}
else {
if ((OrderGetAbilityCommand(UnitOrder(lv_defender, 0)) != AbilityCommand("attack", 0)) && (OrderGetAbilityCommand(UnitOrder(lv_defender, 0)) != AbilityCommand("move", 3)) && (OrderGetAbilityCommand(UnitOrder(lv_defender, 0)) != AbilityCommand("move", 0)) && (UnitGroupCount(lv_nearbyEnemies, c_unitCountAlive) > 0) && (UnitGetOwner(lv_defender) == gv_pLAYER_P08_MUTALISK_TOWERS)) {
UnitIssueOrder(lv_defender, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupRandomUnit(lv_nearbyEnemies, c_unitCountAlive))), c_orderQueueReplace);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:4266
}
else {
if ((UnitOrder(auto5DEA0F36_var, 0) == null)) {
UnitIssueOrder(auto5DEA0F36_var, Order(AbilityCommand("BurrowZerglingUp", 0)), c_orderQueueReplace);
UnitIssueOrder(auto5DEA0F36_var, OrderTargetingPoint(AbilityCommand("attack", 0), PointFromId(623)), c_orderQueueReplace);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:5375
autoE5915620_var = UnitGroupUnitFromEnd(autoE5915620_g, autoE5915620_u);
if (autoE5915620_var == null) { break; }
if ((UnitHasBehavior(autoE5915620_var, "ZeratulStun") == false) && (OrderGetAbilityCommand(UnitOrder(autoE5915620_var, 0)) != AbilityCommand("attack", 0)) && (OrderGetAbilityCommand(UnitOrder(autoE5915620_var, 0)) != AbilityCommand("move", 3)) && (OrderGetAbilityCommand(UnitOrder(autoE5915620_var, 0)) != AbilityCommand("move", 0))) {
UnitIssueOrder(autoE5915620_var, OrderTargetingPoint(AbilityCommand("attack", 0), RegionRandomPoint(RegionFromId(126))), c_orderQueueReplace);
UnitIssueOrder(autoE5915620_var, OrderTargetingPoint(AbilityCommand("attack", 0), RegionRandomPoint(RegionFromId(127))), c_orderQueueAddToEnd);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:5375
autoE5915620_var = UnitGroupUnitFromEnd(autoE5915620_g, autoE5915620_u);
if (autoE5915620_var == null) { break; }
if ((UnitHasBehavior(autoE5915620_var, "ZeratulStun") == false) && (OrderGetAbilityCommand(UnitOrder(autoE5915620_var, 0)) != AbilityCommand("attack", 0)) && (OrderGetAbilityCommand(UnitOrder(autoE5915620_var, 0)) != AbilityCommand("move", 3)) && (OrderGetAbilityCommand(UnitOrder(autoE5915620_var, 0)) != AbilityCommand("move", 0))) {
UnitIssueOrder(autoE5915620_var, OrderTargetingPoint(AbilityCommand("attack", 0), RegionRandomPoint(RegionFromId(126))), c_orderQueueReplace);
UnitIssueOrder(autoE5915620_var, OrderTargetingPoint(AbilityCommand("attack", 0), RegionRandomPoint(RegionFromId(127))), c_orderQueueAddToEnd);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:5375
autoE5915620_var = UnitGroupUnitFromEnd(autoE5915620_g, autoE5915620_u);
if (autoE5915620_var == null) { break; }
if ((UnitHasBehavior(autoE5915620_var, "ZeratulStun") == false) && (OrderGetAbilityCommand(UnitOrder(autoE5915620_var, 0)) != AbilityCommand("attack", 0)) && (OrderGetAbilityCommand(UnitOrder(autoE5915620_var, 0)) != AbilityCommand("move", 3)) && (OrderGetAbilityCommand(UnitOrder(autoE5915620_var, 0)) != AbilityCommand("move", 0))) {
UnitIssueOrder(autoE5915620_var, OrderTargetingPoint(AbilityCommand("attack", 0), RegionRandomPoint(RegionFromId(126))), c_orderQueueReplace);
UnitIssueOrder(autoE5915620_var, OrderTargetingPoint(AbilityCommand("attack", 0), RegionRandomPoint(RegionFromId(127))), c_orderQueueAddToEnd);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:7473
auto0685ADAD_var = UnitGroupUnitFromEnd(auto0685ADAD_g, auto0685ADAD_u);
if (auto0685ADAD_var == null) { break; }
if ((UnitHasBehavior(auto0685ADAD_var, "ZeratulStun") == false) && (OrderGetAbilityCommand(UnitOrder(auto0685ADAD_var, 0)) != AbilityCommand("attack", 0)) && (OrderGetAbilityCommand(UnitOrder(auto0685ADAD_var, 0)) != AbilityCommand("move", 3)) && (OrderGetAbilityCommand(UnitOrder(auto0685ADAD_var, 0)) != AbilityCommand("move", 0))) {
if ((UnitGetCustomValue(auto0685ADAD_var, 0) < UnitGetCustomValue(auto0685ADAD_var, 5))) {
UnitSetCustomValue(auto0685ADAD_var, 0, (UnitGetCustomValue(auto0685ADAD_var, 0) + 0.5));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:7473
auto0685ADAD_var = UnitGroupUnitFromEnd(auto0685ADAD_g, auto0685ADAD_u);
if (auto0685ADAD_var == null) { break; }
if ((UnitHasBehavior(auto0685ADAD_var, "ZeratulStun") == false) && (OrderGetAbilityCommand(UnitOrder(auto0685ADAD_var, 0)) != AbilityCommand("attack", 0)) && (OrderGetAbilityCommand(UnitOrder(auto0685ADAD_var, 0)) != AbilityCommand("move", 3)) && (OrderGetAbilityCommand(UnitOrder(auto0685ADAD_var, 0)) != AbilityCommand("move", 0))) {
if ((UnitGetCustomValue(auto0685ADAD_var, 0) < UnitGetCustomValue(auto0685ADAD_var, 5))) {
UnitSetCustomValue(auto0685ADAD_var, 0, (UnitGetCustomValue(auto0685ADAD_var, 0) + 0.5));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:7473
auto0685ADAD_var = UnitGroupUnitFromEnd(auto0685ADAD_g, auto0685ADAD_u);
if (auto0685ADAD_var == null) { break; }
if ((UnitHasBehavior(auto0685ADAD_var, "ZeratulStun") == false) && (OrderGetAbilityCommand(UnitOrder(auto0685ADAD_var, 0)) != AbilityCommand("attack", 0)) && (OrderGetAbilityCommand(UnitOrder(auto0685ADAD_var, 0)) != AbilityCommand("move", 3)) && (OrderGetAbilityCommand(UnitOrder(auto0685ADAD_var, 0)) != AbilityCommand("move", 0))) {
if ((UnitGetCustomValue(auto0685ADAD_var, 0) < UnitGetCustomValue(auto0685ADAD_var, 5))) {
UnitSetCustomValue(auto0685ADAD_var, 0, (UnitGetCustomValue(auto0685ADAD_var, 0) + 0.5));
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/terrancombat.sc2map/MapScript.galaxy:2028
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
UnitGroupAdd(gv_playerUnitsArea1, UnitGroupLoopCurrent());
while (!((UnitOrder(UnitGroupLoopCurrent(), 0) != Order(AbilityCommand("SiegeMode", 0))))) {
Wait(0.1, c_timeGame);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/terrancombat.sc2map/MapScript.galaxy:2036
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
UnitGroupAdd(gv_playerUnitsArea2, UnitGroupLoopCurrent());
while (!((UnitOrder(UnitGroupLoopCurrent(), 0) != Order(AbilityCommand("SiegeMode", 0))))) {
Wait(0.1, c_timeGame);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/terrancombat.sc2map/MapScript.galaxy:2044
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
UnitGroupAdd(gv_playerUnitsArea3, UnitGroupLoopCurrent());
while (!((UnitOrder(UnitGroupLoopCurrent(), 0) != Order(AbilityCommand("SiegeMode", 0))))) {
Wait(0.1, c_timeGame);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/zergcombat.sc2map/MapScript.galaxy:2116
while (!UnitGroupLoopDone()) {
UnitGroupAdd(gv_playerUnitsArea1, UnitGroupLoopCurrent());
while (!((UnitOrder(UnitGroupLoopCurrent(), 0) != Order(AbilityCommand("BurrowUltraliskDown", 0))))) {
Wait(0.1, c_timeGame);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/zergcombat.sc2map/MapScript.galaxy:2125
while (!UnitGroupLoopDone()) {
UnitGroupAdd(gv_playerUnitsArea2, UnitGroupLoopCurrent());
while (!((UnitOrder(UnitGroupLoopCurrent(), 0) != Order(AbilityCommand("BurrowUltraliskDown", 0))))) {
Wait(0.1, c_timeGame);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/zergcombat.sc2map/MapScript.galaxy:2134
while (!UnitGroupLoopDone()) {
UnitGroupAdd(gv_playerUnitsArea3, UnitGroupLoopCurrent());
while (!((UnitOrder(UnitGroupLoopCurrent(), 0) != Order(AbilityCommand("BurrowUltraliskDown", 0))))) {
Wait(0.1, c_timeGame);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03b.sc2map — MapScript.galaxy:831
// Implementation
lv_colonist = UnitGroupRandomUnit(UnitGroup("Colonist", c_playerAny, lp_locale, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
if (((lv_colonist == null) || (UnitOrder(lv_colonist, 0) != null))) {
return ;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03b.sc2map — MapScript.galaxy:2231
for ( ; ( (autoB5362C4D_ai >= 0 && lv_colonyIndex <= autoB5362C4D_ae) || (autoB5362C4D_ai < 0 && lv_colonyIndex >= autoB5362C4D_ae) ) ; lv_colonyIndex += autoB5362C4D_ai ) {
lv_feederling = UnitGroupRandomUnit(UnitGroup("Feederling", gv_p07_ZERG_INFESTED, gv_infestationRegion[lv_colonyIndex], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
if ((lv_feederling != null) && (UnitOrder(lv_feederling, 0) == null)) {
lv_egg = UnitGroupRandomUnit(UnitGroup(gv_eGG_UNIT, c_playerAny, gv_infestationRegion[lv_colonyIndex], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
if ((lv_egg != null)) {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03b.sc2map — MapScript.galaxy:4726
if ((gv_inCinematic == true)) {
lv_feederling = UnitGroupRandomUnit(UnitGroup("Feederling", gv_p07_ZERG_INFESTED, gv_infestationRegion[2], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
if ((lv_feederling != null) && (UnitOrder(lv_feederling, 0) == null)) {
for (autoF17949B3_i = 1; autoF17949B3_i <= autoF17949B3_n; autoF17949B3_i += 1) {
lv_hut = UnitGroupRandomUnit(UnitGroup("InfestableHut", c_playerAny, gv_infestationRegion[2], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:3677
lv_orderIndex = 0;
for ( ; ( (auto08C32D67_ai >= 0 && lv_orderIndex <= auto08C32D67_ae) || (auto08C32D67_ai <= 0 && lv_orderIndex >= auto08C32D67_ae) ) ; lv_orderIndex += auto08C32D67_ai ) {
lv_order = UnitOrder(lp_unit, lv_orderIndex);
if ((AbilityCommandGetAbility(OrderGetAbilityCommand(lv_order)) == "move")) {
return OrderGetTargetPoint(lv_order);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:20937
lv_lastActionType = gv_bGActors[lv_bGActorID].lv_nodes[lv_lastNodeID].lv_type;
if ((OrderGetAbilityCommand(UnitOrder(gf_GetBGActor(lv_bGActorID), 0)) != AbilityCommand("move", 1))) {
Wait(0.125, c_timeGame);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh02.sc2map — MapScript.galaxy:1993
}
if (!((OrderGetTargetUnit(UnitOrder(EventUnit(), 0)) != gv_terrazineHarvesting))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03a.sc2map — MapScript.galaxy:313
}
if ((UnitOrder(lp_worker, 0) != null)) {
return ;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03a.sc2map — MapScript.galaxy:2749
lv_driver = UnitGroupUnitFromEnd(autoC4A62E5D_g, autoC4A62E5D_u);
if (lv_driver == null) { break; }
if ((UnitOrder(lv_driver, 0) == null)) {
if ((libNtve_gf_UnitInRegion(lv_driver, RegionFromId(13)) == true)) {
lv_targetDiamondback = libNtve_gf_ClosestUnitToPoint(UnitGetPosition(lv_driver), gv_nonActivatedDiamondbacks);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus05.sc2map — MapScript.galaxy:2363
}
if (!((UnitOrder(gv_uNITDaMothership, 0) == null))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2map — MapScript.galaxy:5781
auto937566B9_var = UnitGroupUnitFromEnd(auto937566B9_g, auto937566B9_u);
if (auto937566B9_var == null) { break; }
if ((UnitGetCustomValue(auto937566B9_var, 0) >= 1.0) && (UnitOrder(auto937566B9_var, 0) == null)) {
UnitIssueOrder(auto937566B9_var, OrderTargetingPoint(AbilityCommand("move", 0), UnitGetPosition(UnitGroupRandomUnit(UnitGroup("Egg", c_playerAny, gv_feederlingRegions[FixedToInt(UnitGetCustomValue(auto937566B9_var, 0))], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive))), c_orderQueueReplace);
UnitIssueOrder(auto937566B9_var, OrderTargetingPoint(AbilityCommand("move", 0), UnitGetPosition(UnitGroupRandomUnit(UnitGroup("Egg", c_playerAny, gv_feederlingRegions[FixedToInt(UnitGetCustomValue(auto937566B9_var, 0))], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive))), c_orderQueueAddToEnd);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2map — MapScript.galaxy:7683
auto5B595CD1_var = UnitGroupUnitFromEnd(auto5B595CD1_g, auto5B595CD1_u);
if (auto5B595CD1_var == null) { break; }
if ((UnitGetCustomValue(auto5B595CD1_var, 0) >= 1.0) && (UnitOrder(auto5B595CD1_var, 0) == null)) {
UnitIssueOrder(auto5B595CD1_var, OrderTargetingPoint(AbilityCommand("move", 0), UnitGetPosition(UnitGroupRandomUnit(lv_cocoons, c_unitCountAlive))), c_orderQueueReplace);
UnitIssueOrder(auto5B595CD1_var, OrderTargetingPoint(AbilityCommand("move", 0), UnitGetPosition(UnitGroupRandomUnit(lv_cocoons, c_unitCountAlive))), c_orderQueueAddToEnd);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02b.sc2map — MapScript.galaxy:519
}
else {
if ((OrderGetAbilityCommand(UnitOrder(lv_defender, 0)) != AbilityCommand("attack", 0)) && (OrderGetAbilityCommand(UnitOrder(lv_defender, 0)) != AbilityCommand("move", 3)) && (OrderGetAbilityCommand(UnitOrder(lv_defender, 0)) != AbilityCommand("move", 0)) && (UnitGroupCount(lv_nearbyEnemies, c_unitCountAlive) > 0) && (UnitGetOwner(lv_defender) == gv_pLAYER_P08_MUTALISK_TOWERS)) {
UnitIssueOrder(lv_defender, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupRandomUnit(lv_nearbyEnemies, c_unitCountAlive))), c_orderQueueReplace);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02b.sc2map — MapScript.galaxy:519
}
else {
if ((OrderGetAbilityCommand(UnitOrder(lv_defender, 0)) != AbilityCommand("attack", 0)) && (OrderGetAbilityCommand(UnitOrder(lv_defender, 0)) != AbilityCommand("move", 3)) && (OrderGetAbilityCommand(UnitOrder(lv_defender, 0)) != AbilityCommand("move", 0)) && (UnitGroupCount(lv_nearbyEnemies, c_unitCountAlive) > 0) && (UnitGetOwner(lv_defender) == gv_pLAYER_P08_MUTALISK_TOWERS)) {
UnitIssueOrder(lv_defender, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupRandomUnit(lv_nearbyEnemies, c_unitCountAlive))), c_orderQueueReplace);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02b.sc2map — MapScript.galaxy:519
}
else {
if ((OrderGetAbilityCommand(UnitOrder(lv_defender, 0)) != AbilityCommand("attack", 0)) && (OrderGetAbilityCommand(UnitOrder(lv_defender, 0)) != AbilityCommand("move", 3)) && (OrderGetAbilityCommand(UnitOrder(lv_defender, 0)) != AbilityCommand("move", 0)) && (UnitGroupCount(lv_nearbyEnemies, c_unitCountAlive) > 0) && (UnitGetOwner(lv_defender) == gv_pLAYER_P08_MUTALISK_TOWERS)) {
UnitIssueOrder(lv_defender, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupRandomUnit(lv_nearbyEnemies, c_unitCountAlive))), c_orderQueueReplace);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2map — MapScript.galaxy:4266
}
else {
if ((UnitOrder(auto5DEA0F36_var, 0) == null)) {
UnitIssueOrder(auto5DEA0F36_var, Order(AbilityCommand("BurrowZerglingUp", 0)), c_orderQueueReplace);
UnitIssueOrder(auto5DEA0F36_var, OrderTargetingPoint(AbilityCommand("attack", 0), PointFromId(623)), c_orderQueueReplace);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2map — MapScript.galaxy:5375
autoE5915620_var = UnitGroupUnitFromEnd(autoE5915620_g, autoE5915620_u);
if (autoE5915620_var == null) { break; }
if ((UnitHasBehavior(autoE5915620_var, "ZeratulStun") == false) && (OrderGetAbilityCommand(UnitOrder(autoE5915620_var, 0)) != AbilityCommand("attack", 0)) && (OrderGetAbilityCommand(UnitOrder(autoE5915620_var, 0)) != AbilityCommand("move", 3)) && (OrderGetAbilityCommand(UnitOrder(autoE5915620_var, 0)) != AbilityCommand("move", 0))) {
UnitIssueOrder(autoE5915620_var, OrderTargetingPoint(AbilityCommand("attack", 0), RegionRandomPoint(RegionFromId(126))), c_orderQueueReplace);
UnitIssueOrder(autoE5915620_var, OrderTargetingPoint(AbilityCommand("attack", 0), RegionRandomPoint(RegionFromId(127))), c_orderQueueAddToEnd);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2map — MapScript.galaxy:5375
autoE5915620_var = UnitGroupUnitFromEnd(autoE5915620_g, autoE5915620_u);
if (autoE5915620_var == null) { break; }
if ((UnitHasBehavior(autoE5915620_var, "ZeratulStun") == false) && (OrderGetAbilityCommand(UnitOrder(autoE5915620_var, 0)) != AbilityCommand("attack", 0)) && (OrderGetAbilityCommand(UnitOrder(autoE5915620_var, 0)) != AbilityCommand("move", 3)) && (OrderGetAbilityCommand(UnitOrder(autoE5915620_var, 0)) != AbilityCommand("move", 0))) {
UnitIssueOrder(autoE5915620_var, OrderTargetingPoint(AbilityCommand("attack", 0), RegionRandomPoint(RegionFromId(126))), c_orderQueueReplace);
UnitIssueOrder(autoE5915620_var, OrderTargetingPoint(AbilityCommand("attack", 0), RegionRandomPoint(RegionFromId(127))), c_orderQueueAddToEnd);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2map — MapScript.galaxy:5375
autoE5915620_var = UnitGroupUnitFromEnd(autoE5915620_g, autoE5915620_u);
if (autoE5915620_var == null) { break; }
if ((UnitHasBehavior(autoE5915620_var, "ZeratulStun") == false) && (OrderGetAbilityCommand(UnitOrder(autoE5915620_var, 0)) != AbilityCommand("attack", 0)) && (OrderGetAbilityCommand(UnitOrder(autoE5915620_var, 0)) != AbilityCommand("move", 3)) && (OrderGetAbilityCommand(UnitOrder(autoE5915620_var, 0)) != AbilityCommand("move", 0))) {
UnitIssueOrder(autoE5915620_var, OrderTargetingPoint(AbilityCommand("attack", 0), RegionRandomPoint(RegionFromId(126))), c_orderQueueReplace);
UnitIssueOrder(autoE5915620_var, OrderTargetingPoint(AbilityCommand("attack", 0), RegionRandomPoint(RegionFromId(127))), c_orderQueueAddToEnd);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2map — MapScript.galaxy:7473
auto0685ADAD_var = UnitGroupUnitFromEnd(auto0685ADAD_g, auto0685ADAD_u);
if (auto0685ADAD_var == null) { break; }
if ((UnitHasBehavior(auto0685ADAD_var, "ZeratulStun") == false) && (OrderGetAbilityCommand(UnitOrder(auto0685ADAD_var, 0)) != AbilityCommand("attack", 0)) && (OrderGetAbilityCommand(UnitOrder(auto0685ADAD_var, 0)) != AbilityCommand("move", 3)) && (OrderGetAbilityCommand(UnitOrder(auto0685ADAD_var, 0)) != AbilityCommand("move", 0))) {
if ((UnitGetCustomValue(auto0685ADAD_var, 0) < UnitGetCustomValue(auto0685ADAD_var, 5))) {
UnitSetCustomValue(auto0685ADAD_var, 0, (UnitGetCustomValue(auto0685ADAD_var, 0) + 0.5));
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2map — MapScript.galaxy:7473
auto0685ADAD_var = UnitGroupUnitFromEnd(auto0685ADAD_g, auto0685ADAD_u);
if (auto0685ADAD_var == null) { break; }
if ((UnitHasBehavior(auto0685ADAD_var, "ZeratulStun") == false) && (OrderGetAbilityCommand(UnitOrder(auto0685ADAD_var, 0)) != AbilityCommand("attack", 0)) && (OrderGetAbilityCommand(UnitOrder(auto0685ADAD_var, 0)) != AbilityCommand("move", 3)) && (OrderGetAbilityCommand(UnitOrder(auto0685ADAD_var, 0)) != AbilityCommand("move", 0))) {
if ((UnitGetCustomValue(auto0685ADAD_var, 0) < UnitGetCustomValue(auto0685ADAD_var, 5))) {
UnitSetCustomValue(auto0685ADAD_var, 0, (UnitGetCustomValue(auto0685ADAD_var, 0) + 0.5));
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2map — MapScript.galaxy:7473
auto0685ADAD_var = UnitGroupUnitFromEnd(auto0685ADAD_g, auto0685ADAD_u);
if (auto0685ADAD_var == null) { break; }
if ((UnitHasBehavior(auto0685ADAD_var, "ZeratulStun") == false) && (OrderGetAbilityCommand(UnitOrder(auto0685ADAD_var, 0)) != AbilityCommand("attack", 0)) && (OrderGetAbilityCommand(UnitOrder(auto0685ADAD_var, 0)) != AbilityCommand("move", 3)) && (OrderGetAbilityCommand(UnitOrder(auto0685ADAD_var, 0)) != AbilityCommand("move", 0))) {
if ((UnitGetCustomValue(auto0685ADAD_var, 0) < UnitGetCustomValue(auto0685ADAD_var, 5))) {
UnitSetCustomValue(auto0685ADAD_var, 0, (UnitGetCustomValue(auto0685ADAD_var, 0) + 0.5));
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/terrancombat.sc2map — MapScript.galaxy:2028
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
UnitGroupAdd(gv_playerUnitsArea1, UnitGroupLoopCurrent());
while (!((UnitOrder(UnitGroupLoopCurrent(), 0) != Order(AbilityCommand("SiegeMode", 0))))) {
Wait(0.1, c_timeGame);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/terrancombat.sc2map — MapScript.galaxy:2036
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
UnitGroupAdd(gv_playerUnitsArea2, UnitGroupLoopCurrent());
while (!((UnitOrder(UnitGroupLoopCurrent(), 0) != Order(AbilityCommand("SiegeMode", 0))))) {
Wait(0.1, c_timeGame);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/terrancombat.sc2map — MapScript.galaxy:2044
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
UnitGroupAdd(gv_playerUnitsArea3, UnitGroupLoopCurrent());
while (!((UnitOrder(UnitGroupLoopCurrent(), 0) != Order(AbilityCommand("SiegeMode", 0))))) {
Wait(0.1, c_timeGame);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/zergcombat.sc2map — MapScript.galaxy:2116
while (!UnitGroupLoopDone()) {
UnitGroupAdd(gv_playerUnitsArea1, UnitGroupLoopCurrent());
while (!((UnitOrder(UnitGroupLoopCurrent(), 0) != Order(AbilityCommand("BurrowUltraliskDown", 0))))) {
Wait(0.1, c_timeGame);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/zergcombat.sc2map — MapScript.galaxy:2125
while (!UnitGroupLoopDone()) {
UnitGroupAdd(gv_playerUnitsArea2, UnitGroupLoopCurrent());
while (!((UnitOrder(UnitGroupLoopCurrent(), 0) != Order(AbilityCommand("BurrowUltraliskDown", 0))))) {
Wait(0.1, c_timeGame);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/zergcombat.sc2map — MapScript.galaxy:2134
while (!UnitGroupLoopDone()) {
UnitGroupAdd(gv_playerUnitsArea3, UnitGroupLoopCurrent());
while (!((UnitOrder(UnitGroupLoopCurrent(), 0) != Order(AbilityCommand("BurrowUltraliskDown", 0))))) {
Wait(0.1, c_timeGame);
}
campaigns/swarm.sc2campaign — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:50
}
curOrd = UnitOrder(aiUnit, 0);
if ((curOrd != null) && !AIIsAttackOrder(curOrd)) {
// don't cast again if casting
campaigns/swarm.sc2campaign — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:63
numPossibleThreats = numPossibleThreats - 1;
enemyOrd = UnitOrder(unitToCheck, 0);
if (AIIsAttackOrder(enemyOrd) && OrderGetTargetUnit(enemyOrd) == aiUnit) {
numActualThreats = numActualThreats + 1;
campaigns/swarm.sc2campaign — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:90
numPossibleThreatsInBarrage = numPossibleThreatsInBarrage - 1;
enemyOrd = UnitOrder(unitToCheck, 0);
if (AIIsAttackOrder(enemyOrd) && OrderGetTargetUnit(enemyOrd) == aiUnit) {
numActualThreatsInBarrage = numActualThreatsInBarrage + 1;
campaigns/swarm.sc2campaign — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:119
}
curOrd = UnitOrder(aiUnit, 0);
if ((curOrd == null) && AIIsAttackOrder(curOrd)) {
return;
campaigns/swarm.sc2campaign — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:227
// Only cast as part of an existing offensive.
//
if (!AIIsAttackOrder(UnitOrder(aiUnit, 0))) {
return null;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zkorhal02.sc2map/MapScript.galaxy:4724
Wait(15.0, c_timeGame);
while ((UnitOrder(EventUnit(), 0) == OrderTargetingPoint(AbilityCommand("TacNukeStrike", 0), EventUnitTargetPoint()))) {
UnitGroupAddUnitGroup(lv_fleeingunits, UnitGroup(null, gv_pLAYER_02_DOMINION, RegionCircle(EventUnitTargetPoint(), 9.0), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
AISetGroupScriptControlled(lv_fleeingunits, true);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab03.sc2map/MapScript.galaxy:744
lv_index = 0;
for ( ; ( (auto0F8AD8A8_ai >= 0 && lv_index <= auto0F8AD8A8_ae) || (auto0F8AD8A8_ai < 0 && lv_index >= auto0F8AD8A8_ae) ) ; lv_index += auto0F8AD8A8_ai ) {
if ((OrderGetAbilityCommand(UnitOrder(lp_u, lv_index)) == lp_abilityCommand)) {
return true;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zspace01.sc2map/MapScript.galaxy:525
lv_indexOrder = 1;
for ( ; ( (auto806F3943_ai >= 0 && lv_indexOrder <= auto806F3943_ae) || (auto806F3943_ai < 0 && lv_indexOrder >= auto806F3943_ae) ) ; lv_indexOrder += auto806F3943_ai ) {
if ((OrderGetAbilityCommand(UnitOrder(lv_indexUnit, (lv_indexOrder - 1))) == AbilityCommand("attack", 0))) {
return true;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zspace01.sc2map/MapScript.galaxy:3623
lv_indexOrder = 1;
for ( ; ( (auto1450145F_ai >= 0 && lv_indexOrder <= auto1450145F_ae) || (auto1450145F_ai < 0 && lv_indexOrder >= auto1450145F_ae) ) ; lv_indexOrder += auto1450145F_ai ) {
if ((OrderGetAbilityCommand(UnitOrder(lv_indexUnit, (lv_indexOrder - 1))) == AbilityCommand("attack", 0))) {
lv_idle = false;
break;
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zspace02.sc2map/MapScript.galaxy:2765
UnitIssueOrder(gv_kerrigan, Order(AbilityCommand("move", 2)), c_orderQueueAddToEnd);
Wait(1.0, c_timeGame);
while (!((OrderGetAbilityCommand(UnitOrder(gv_kerrigan, 0)) == AbilityCommand("move", 2)))) {
Wait(0.0625, c_timeGame);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus01.sc2map/MapScript.galaxy:736
}
if (((UnitTestState(lp_primal, c_unitStateIdle) == true) || (UnitOrder(lp_primal, 0) == OrderTargetingUnit(AbilityCommand("attack", 0), lp_critter)) || (UnitOrder(lp_primal, 0) == OrderTargetingPoint(AbilityCommand("attack", 0), lv_idlePosition)) || (UnitOrder(lp_primal, 1) == OrderTargetingPoint(AbilityCommand("attack", 0), lv_idlePosition)))) {
}
else {
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus01.sc2map/MapScript.galaxy:736
}
if (((UnitTestState(lp_primal, c_unitStateIdle) == true) || (UnitOrder(lp_primal, 0) == OrderTargetingUnit(AbilityCommand("attack", 0), lp_critter)) || (UnitOrder(lp_primal, 0) == OrderTargetingPoint(AbilityCommand("attack", 0), lv_idlePosition)) || (UnitOrder(lp_primal, 1) == OrderTargetingPoint(AbilityCommand("attack", 0), lv_idlePosition)))) {
}
else {
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus01.sc2map/MapScript.galaxy:736
}
if (((UnitTestState(lp_primal, c_unitStateIdle) == true) || (UnitOrder(lp_primal, 0) == OrderTargetingUnit(AbilityCommand("attack", 0), lp_critter)) || (UnitOrder(lp_primal, 0) == OrderTargetingPoint(AbilityCommand("attack", 0), lv_idlePosition)) || (UnitOrder(lp_primal, 1) == OrderTargetingPoint(AbilityCommand("attack", 0), lv_idlePosition)))) {
}
else {
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus01.sc2map/MapScript.galaxy:1625
lv_index = 0;
for ( ; ( (auto9042254E_ai >= 0 && lv_index <= auto9042254E_ae) || (auto9042254E_ai < 0 && lv_index >= auto9042254E_ae) ) ; lv_index += auto9042254E_ai ) {
if ((AbilityCommandGetAbility(OrderGetAbilityCommand(UnitOrder(lp_harvester, lv_index))) == "attack") && (OrderGetTargetUnit(UnitOrder(lp_harvester, lv_index)) != null) && (UnitGetType(OrderGetTargetUnit(UnitOrder(lp_harvester, lv_index))) == "SpaceCowCorpse")) {
return true;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus01.sc2map/MapScript.galaxy:1625
lv_index = 0;
for ( ; ( (auto9042254E_ai >= 0 && lv_index <= auto9042254E_ae) || (auto9042254E_ai < 0 && lv_index >= auto9042254E_ae) ) ; lv_index += auto9042254E_ai ) {
if ((AbilityCommandGetAbility(OrderGetAbilityCommand(UnitOrder(lp_harvester, lv_index))) == "attack") && (OrderGetTargetUnit(UnitOrder(lp_harvester, lv_index)) != null) && (UnitGetType(OrderGetTargetUnit(UnitOrder(lp_harvester, lv_index))) == "SpaceCowCorpse")) {
return true;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus01.sc2map/MapScript.galaxy:1625
lv_index = 0;
for ( ; ( (auto9042254E_ai >= 0 && lv_index <= auto9042254E_ae) || (auto9042254E_ai < 0 && lv_index >= auto9042254E_ae) ) ; lv_index += auto9042254E_ai ) {
if ((AbilityCommandGetAbility(OrderGetAbilityCommand(UnitOrder(lp_harvester, lv_index))) == "attack") && (OrderGetTargetUnit(UnitOrder(lp_harvester, lv_index)) != null) && (UnitGetType(OrderGetTargetUnit(UnitOrder(lp_harvester, lv_index))) == "SpaceCowCorpse")) {
return true;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus02.sc2map/MapScript.galaxy:404
}
if (((UnitTestState(lp_primal, c_unitStateIdle) == true) || (UnitOrder(lp_primal, 0) == OrderTargetingUnit(AbilityCommand("attack", 0), lp_critter)) || (UnitOrder(lp_primal, 0) == OrderTargetingPoint(AbilityCommand("attack", 0), lv_idlePosition)) || (UnitOrder(lp_primal, 1) == OrderTargetingPoint(AbilityCommand("attack", 0), lv_idlePosition)))) {
}
else {
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus02.sc2map/MapScript.galaxy:404
}
if (((UnitTestState(lp_primal, c_unitStateIdle) == true) || (UnitOrder(lp_primal, 0) == OrderTargetingUnit(AbilityCommand("attack", 0), lp_critter)) || (UnitOrder(lp_primal, 0) == OrderTargetingPoint(AbilityCommand("attack", 0), lv_idlePosition)) || (UnitOrder(lp_primal, 1) == OrderTargetingPoint(AbilityCommand("attack", 0), lv_idlePosition)))) {
}
else {
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus02.sc2map/MapScript.galaxy:404
}
if (((UnitTestState(lp_primal, c_unitStateIdle) == true) || (UnitOrder(lp_primal, 0) == OrderTargetingUnit(AbilityCommand("attack", 0), lp_critter)) || (UnitOrder(lp_primal, 0) == OrderTargetingPoint(AbilityCommand("attack", 0), lv_idlePosition)) || (UnitOrder(lp_primal, 1) == OrderTargetingPoint(AbilityCommand("attack", 0), lv_idlePosition)))) {
}
else {
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus03.sc2map/MapScript.galaxy:680
}
if (((UnitTestState(lp_primal, c_unitStateIdle) == true) || (UnitOrder(lp_primal, 0) == OrderTargetingUnit(AbilityCommand("attack", 0), lp_critter)) || (UnitOrder(lp_primal, 0) == OrderTargetingPoint(AbilityCommand("attack", 0), lv_idlePosition)) || (UnitOrder(lp_primal, 1) == OrderTargetingPoint(AbilityCommand("attack", 0), lv_idlePosition)))) {
}
else {
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus03.sc2map/MapScript.galaxy:680
}
if (((UnitTestState(lp_primal, c_unitStateIdle) == true) || (UnitOrder(lp_primal, 0) == OrderTargetingUnit(AbilityCommand("attack", 0), lp_critter)) || (UnitOrder(lp_primal, 0) == OrderTargetingPoint(AbilityCommand("attack", 0), lv_idlePosition)) || (UnitOrder(lp_primal, 1) == OrderTargetingPoint(AbilityCommand("attack", 0), lv_idlePosition)))) {
}
else {
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus03.sc2map/MapScript.galaxy:680
}
if (((UnitTestState(lp_primal, c_unitStateIdle) == true) || (UnitOrder(lp_primal, 0) == OrderTargetingUnit(AbilityCommand("attack", 0), lp_critter)) || (UnitOrder(lp_primal, 0) == OrderTargetingPoint(AbilityCommand("attack", 0), lv_idlePosition)) || (UnitOrder(lp_primal, 1) == OrderTargetingPoint(AbilityCommand("attack", 0), lv_idlePosition)))) {
}
else {
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal02.sc2map — MapScript.galaxy:4724
Wait(15.0, c_timeGame);
while ((UnitOrder(EventUnit(), 0) == OrderTargetingPoint(AbilityCommand("TacNukeStrike", 0), EventUnitTargetPoint()))) {
UnitGroupAddUnitGroup(lv_fleeingunits, UnitGroup(null, gv_pLAYER_02_DOMINION, RegionCircle(EventUnitTargetPoint(), 9.0), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
AISetGroupScriptControlled(lv_fleeingunits, true);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab03.sc2map — MapScript.galaxy:744
lv_index = 0;
for ( ; ( (auto0F8AD8A8_ai >= 0 && lv_index <= auto0F8AD8A8_ae) || (auto0F8AD8A8_ai < 0 && lv_index >= auto0F8AD8A8_ae) ) ; lv_index += auto0F8AD8A8_ai ) {
if ((OrderGetAbilityCommand(UnitOrder(lp_u, lv_index)) == lp_abilityCommand)) {
return true;
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace01.sc2map — MapScript.galaxy:525
lv_indexOrder = 1;
for ( ; ( (auto806F3943_ai >= 0 && lv_indexOrder <= auto806F3943_ae) || (auto806F3943_ai < 0 && lv_indexOrder >= auto806F3943_ae) ) ; lv_indexOrder += auto806F3943_ai ) {
if ((OrderGetAbilityCommand(UnitOrder(lv_indexUnit, (lv_indexOrder - 1))) == AbilityCommand("attack", 0))) {
return true;
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace01.sc2map — MapScript.galaxy:3623
lv_indexOrder = 1;
for ( ; ( (auto1450145F_ai >= 0 && lv_indexOrder <= auto1450145F_ae) || (auto1450145F_ai < 0 && lv_indexOrder >= auto1450145F_ae) ) ; lv_indexOrder += auto1450145F_ai ) {
if ((OrderGetAbilityCommand(UnitOrder(lv_indexUnit, (lv_indexOrder - 1))) == AbilityCommand("attack", 0))) {
lv_idle = false;
break;
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace02.sc2map — MapScript.galaxy:2765
UnitIssueOrder(gv_kerrigan, Order(AbilityCommand("move", 2)), c_orderQueueAddToEnd);
Wait(1.0, c_timeGame);
while (!((OrderGetAbilityCommand(UnitOrder(gv_kerrigan, 0)) == AbilityCommand("move", 2)))) {
Wait(0.0625, c_timeGame);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus01.sc2map — MapScript.galaxy:736
}
if (((UnitTestState(lp_primal, c_unitStateIdle) == true) || (UnitOrder(lp_primal, 0) == OrderTargetingUnit(AbilityCommand("attack", 0), lp_critter)) || (UnitOrder(lp_primal, 0) == OrderTargetingPoint(AbilityCommand("attack", 0), lv_idlePosition)) || (UnitOrder(lp_primal, 1) == OrderTargetingPoint(AbilityCommand("attack", 0), lv_idlePosition)))) {
}
else {
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus01.sc2map — MapScript.galaxy:736
}
if (((UnitTestState(lp_primal, c_unitStateIdle) == true) || (UnitOrder(lp_primal, 0) == OrderTargetingUnit(AbilityCommand("attack", 0), lp_critter)) || (UnitOrder(lp_primal, 0) == OrderTargetingPoint(AbilityCommand("attack", 0), lv_idlePosition)) || (UnitOrder(lp_primal, 1) == OrderTargetingPoint(AbilityCommand("attack", 0), lv_idlePosition)))) {
}
else {
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus01.sc2map — MapScript.galaxy:736
}
if (((UnitTestState(lp_primal, c_unitStateIdle) == true) || (UnitOrder(lp_primal, 0) == OrderTargetingUnit(AbilityCommand("attack", 0), lp_critter)) || (UnitOrder(lp_primal, 0) == OrderTargetingPoint(AbilityCommand("attack", 0), lv_idlePosition)) || (UnitOrder(lp_primal, 1) == OrderTargetingPoint(AbilityCommand("attack", 0), lv_idlePosition)))) {
}
else {
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus01.sc2map — MapScript.galaxy:1625
lv_index = 0;
for ( ; ( (auto9042254E_ai >= 0 && lv_index <= auto9042254E_ae) || (auto9042254E_ai < 0 && lv_index >= auto9042254E_ae) ) ; lv_index += auto9042254E_ai ) {
if ((AbilityCommandGetAbility(OrderGetAbilityCommand(UnitOrder(lp_harvester, lv_index))) == "attack") && (OrderGetTargetUnit(UnitOrder(lp_harvester, lv_index)) != null) && (UnitGetType(OrderGetTargetUnit(UnitOrder(lp_harvester, lv_index))) == "SpaceCowCorpse")) {
return true;
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus01.sc2map — MapScript.galaxy:1625
lv_index = 0;
for ( ; ( (auto9042254E_ai >= 0 && lv_index <= auto9042254E_ae) || (auto9042254E_ai < 0 && lv_index >= auto9042254E_ae) ) ; lv_index += auto9042254E_ai ) {
if ((AbilityCommandGetAbility(OrderGetAbilityCommand(UnitOrder(lp_harvester, lv_index))) == "attack") && (OrderGetTargetUnit(UnitOrder(lp_harvester, lv_index)) != null) && (UnitGetType(OrderGetTargetUnit(UnitOrder(lp_harvester, lv_index))) == "SpaceCowCorpse")) {
return true;
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus01.sc2map — MapScript.galaxy:1625
lv_index = 0;
for ( ; ( (auto9042254E_ai >= 0 && lv_index <= auto9042254E_ae) || (auto9042254E_ai < 0 && lv_index >= auto9042254E_ae) ) ; lv_index += auto9042254E_ai ) {
if ((AbilityCommandGetAbility(OrderGetAbilityCommand(UnitOrder(lp_harvester, lv_index))) == "attack") && (OrderGetTargetUnit(UnitOrder(lp_harvester, lv_index)) != null) && (UnitGetType(OrderGetTargetUnit(UnitOrder(lp_harvester, lv_index))) == "SpaceCowCorpse")) {
return true;
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus02.sc2map — MapScript.galaxy:404
}
if (((UnitTestState(lp_primal, c_unitStateIdle) == true) || (UnitOrder(lp_primal, 0) == OrderTargetingUnit(AbilityCommand("attack", 0), lp_critter)) || (UnitOrder(lp_primal, 0) == OrderTargetingPoint(AbilityCommand("attack", 0), lv_idlePosition)) || (UnitOrder(lp_primal, 1) == OrderTargetingPoint(AbilityCommand("attack", 0), lv_idlePosition)))) {
}
else {
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus02.sc2map — MapScript.galaxy:404
}
if (((UnitTestState(lp_primal, c_unitStateIdle) == true) || (UnitOrder(lp_primal, 0) == OrderTargetingUnit(AbilityCommand("attack", 0), lp_critter)) || (UnitOrder(lp_primal, 0) == OrderTargetingPoint(AbilityCommand("attack", 0), lv_idlePosition)) || (UnitOrder(lp_primal, 1) == OrderTargetingPoint(AbilityCommand("attack", 0), lv_idlePosition)))) {
}
else {
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus02.sc2map — MapScript.galaxy:404
}
if (((UnitTestState(lp_primal, c_unitStateIdle) == true) || (UnitOrder(lp_primal, 0) == OrderTargetingUnit(AbilityCommand("attack", 0), lp_critter)) || (UnitOrder(lp_primal, 0) == OrderTargetingPoint(AbilityCommand("attack", 0), lv_idlePosition)) || (UnitOrder(lp_primal, 1) == OrderTargetingPoint(AbilityCommand("attack", 0), lv_idlePosition)))) {
}
else {
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus03.sc2map — MapScript.galaxy:680
}
if (((UnitTestState(lp_primal, c_unitStateIdle) == true) || (UnitOrder(lp_primal, 0) == OrderTargetingUnit(AbilityCommand("attack", 0), lp_critter)) || (UnitOrder(lp_primal, 0) == OrderTargetingPoint(AbilityCommand("attack", 0), lv_idlePosition)) || (UnitOrder(lp_primal, 1) == OrderTargetingPoint(AbilityCommand("attack", 0), lv_idlePosition)))) {
}
else {
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus03.sc2map — MapScript.galaxy:680
}
if (((UnitTestState(lp_primal, c_unitStateIdle) == true) || (UnitOrder(lp_primal, 0) == OrderTargetingUnit(AbilityCommand("attack", 0), lp_critter)) || (UnitOrder(lp_primal, 0) == OrderTargetingPoint(AbilityCommand("attack", 0), lv_idlePosition)) || (UnitOrder(lp_primal, 1) == OrderTargetingPoint(AbilityCommand("attack", 0), lv_idlePosition)))) {
}
else {
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus03.sc2map — MapScript.galaxy:680
}
if (((UnitTestState(lp_primal, c_unitStateIdle) == true) || (UnitOrder(lp_primal, 0) == OrderTargetingUnit(AbilityCommand("attack", 0), lp_critter)) || (UnitOrder(lp_primal, 0) == OrderTargetingPoint(AbilityCommand("attack", 0), lv_idlePosition)) || (UnitOrder(lp_primal, 1) == OrderTargetingPoint(AbilityCommand("attack", 0), lv_idlePosition)))) {
}
else {
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:2399
auto26F8CB2D_var = UnitGroupUnitFromEnd(auto26F8CB2D_g, auto26F8CB2D_u);
if (auto26F8CB2D_var == null) { break; }
lv_currentOrder = UnitOrder(auto26F8CB2D_var, 0);
if ((((OrderGetAbilityCommand(lv_currentOrder) == AbilityCommand("DroneHarvest", 0)) && ((UnitGetType(OrderGetTargetUnit(lv_currentOrder)) == "MineralField") || (UnitGetType(OrderGetTargetUnit(lv_currentOrder)) == "RichMineralField"))) || ((OrderGetAbilityCommand(lv_currentOrder) == AbilityCommand("DroneHarvest", 1)) && ((UnitHasBehavior(auto26F8CB2D_var, "CarryMineralFieldMinerals") == true) || (UnitHasBehavior(auto26F8CB2D_var, "CarryHighYieldMineralFieldMinerals") == true))))) {
lv_droneCount += 1;
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:2471
auto6B3B066C_var = UnitGroupUnitFromEnd(auto6B3B066C_g, auto6B3B066C_u);
if (auto6B3B066C_var == null) { break; }
lv_currentOrder = UnitOrder(auto6B3B066C_var, 0);
if ((((OrderGetAbilityCommand(lv_currentOrder) == AbilityCommand("DroneHarvest", 0)) && (OrderGetTargetUnit(lv_currentOrder) == lp_extractor)) || ((OrderGetAbilityCommand(lv_currentOrder) == AbilityCommand("DroneHarvest", 1)) && (UnitHasBehavior(auto6B3B066C_var, "CarryHarvestableVespeneGeyserGasZerg") == true)))) {
lv_droneCount += 1;