# Unit Order Count
Grammar — Count of orders on unit
Flags —Native
|Function
Returns the count of orders on a unit.
# Arguments
unit
— Unit
Returns — int
native int UnitOrderCount(unit inUnit);
# 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.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:3672
// Implementation
lv_orderCount = UnitOrderCount(lp_unit);
auto08C32D67_ae = (lv_orderCount - 1);
auto08C32D67_ai = 1;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:3672
// Implementation
lv_orderCount = UnitOrderCount(lp_unit);
auto08C32D67_ae = (lv_orderCount - 1);
auto08C32D67_ai = 1;
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2map/MapScript.galaxy:475
Wait(2.0, c_timeGame);
UnitIssueOrder(lp_tank, OrderTargetingPoint(AbilityCommand("move", 0), RegionRandomPoint(RegionFromId(22))), c_orderQueueReplace);
while (!(((UnitIsAlive(lp_tank) == false) || (UnitOrderCount(lp_tank) == 0)))) {
Wait(1.0, c_timeGame);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2map/MapScript.galaxy:1672
}
UnitGroupLoopEnd();
while (!(((UnitOrderCount(UnitGroupUnit(lv_retreatUnitGroup, 1)) == 0) || (libNtve_gf_UnitGroupIsDead(lv_retreatUnitGroup) == true)))) {
Wait(1.0, c_timeGame);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2map/MapScript.galaxy:327
while ((UnitGroupCount(lp_unitGroup, c_unitCountAlive) > 0)) {
UnitGroupIssueOrder(lp_unitGroup, OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(4)), c_orderQueueAddToEnd);
while (!((UnitOrderCount(UnitGroupUnit(lp_unitGroup, 1)) == 0))) {
Wait(0.25, c_timeGame);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2map/MapScript.galaxy:332
Wait(3.0, c_timeGame);
UnitGroupIssueOrder(lp_unitGroup, OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(128)), c_orderQueueAddToEnd);
while (!((UnitOrderCount(UnitGroupUnit(lp_unitGroup, 1)) == 0))) {
Wait(0.25, c_timeGame);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2map/MapScript.galaxy:547
// Implementation
UnitIssueOrder(lp_mutalisk, OrderTargetingPoint(AbilityCommand("move", 0), UnitGetPosition(gv_mutaSpawner)), c_orderQueueReplace);
while (!((UnitOrderCount(lp_mutalisk) == 0))) {
Wait(0.25, c_timeGame);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/evolution/zevolutionultralisk.sc2map/MapScript.galaxy:1282
UnitGroupLoopBegin(UnitGroup("Ultralisk", c_playerAny, RegionFromId(27), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
while (!UnitGroupLoopDone()) {
if ((UnitGroupLoopCurrent() != gv_startingUltralisk) && (UnitOrderCount(UnitGroupLoopCurrent()) == 0)) {
if ((UnitIsAlive(gv_startingUltralisk) == true)) {
UnitIssueOrder(UnitGroupLoopCurrent(), OrderTargetingPoint(AbilityCommand("move", 0), UnitGetPosition(gv_startingUltralisk)), c_orderQueueAddToEnd);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/evolution/zevolutionultralisk.sc2map/MapScript.galaxy:1372
UnitGroupIssueOrder(lv_guards, OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(224)), c_orderQueueReplace);
UnitGroupIssueOrder(lv_guards, OrderTargetingPoint(AbilityCommand("move", 0), RegionGetCenter(RegionFromId(16))), c_orderQueueAddToEnd);
while (!((UnitOrderCount(UnitGroupUnit(lv_guards, 1)) == 0))) {
Wait(0.25, c_timeGame);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab03.sc2map/MapScript.galaxy:741
// Implementation
auto0F8AD8A8_ae = UnitOrderCount(lp_u);
lv_index = 0;
for ( ; ( (auto0F8AD8A8_ai >= 0 && lv_index <= auto0F8AD8A8_ae) || (auto0F8AD8A8_ai < 0 && lv_index >= auto0F8AD8A8_ae) ) ; lv_index += auto0F8AD8A8_ai ) {
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zspace01.sc2map/MapScript.galaxy:522
lv_indexUnit = UnitGroupUnitFromEnd(auto4DE911B7_g, auto4DE911B7_u);
if (lv_indexUnit == null) { break; }
auto806F3943_ae = UnitOrderCount(lv_indexUnit);
lv_indexOrder = 1;
for ( ; ( (auto806F3943_ai >= 0 && lv_indexOrder <= auto806F3943_ae) || (auto806F3943_ai < 0 && lv_indexOrder >= auto806F3943_ae) ) ; lv_indexOrder += auto806F3943_ai ) {
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zspace01.sc2map/MapScript.galaxy:604
lv_center = lp_targetCenter;
while (true) {
while (!(((UnitIsAlive(lp_fighter) == false) || ((UnitTestState(lp_fighter, c_unitStateIdle) == true) && (UnitOrderCount(lp_fighter) == 0))))) {
Wait(1.0, c_timeGame);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zspace01.sc2map/MapScript.galaxy:3620
if (lv_indexUnit == null) { break; }
lv_idle = true;
auto1450145F_ae = UnitOrderCount(lv_indexUnit);
lv_indexOrder = 1;
for ( ; ( (auto1450145F_ai >= 0 && lv_indexOrder <= auto1450145F_ae) || (auto1450145F_ai < 0 && lv_indexOrder >= auto1450145F_ae) ) ; lv_indexOrder += auto1450145F_ai ) {
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zspace01.sc2map/MapScript.galaxy:4469
UnitIssueOrder(gv_pirateCapitalShip, OrderTargetingPoint(AbilityCommand("move", 0), PointWithOffsetPolar(UnitGetPosition(gv_hyperion), 8.0, (UnitGetFacing(gv_hyperion) - 120.0))), c_orderQueueReplace);
}
while (!(((UnitOrderCount(gv_pirateCapitalShip) == 0) || (libNtve_gf_UnitGroupIsDead(lv_pirateFighters) == true)))) {
Wait(0.25, c_timeGame);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zspace01.sc2map/MapScript.galaxy:4521
UnitIssueOrder(gv_pirateCapitalShip, OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(4)), c_orderQueueReplace);
UnitIssueOrder(gv_pirateCapitalShip, OrderTargetingPoint(AbilityCommand("move", 4), libNtve_gf_PointFromPositionAndAngle(PointFromId(4), 175.0)), c_orderQueueAddToEnd);
while (!((UnitOrderCount(gv_pirateCapitalShip) == 0))) {
Wait(0.25, c_timeGame);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus01.sc2map/MapScript.galaxy:1622
// Implementation
auto9042254E_ae = (UnitOrderCount(lp_harvester) - 1);
lv_index = 0;
for ( ; ( (auto9042254E_ai >= 0 && lv_index <= auto9042254E_ae) || (auto9042254E_ai < 0 && lv_index >= auto9042254E_ae) ) ; lv_index += auto9042254E_ai ) {
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus01.sc2map/MapScript.galaxy:3614
Wait(0.5, c_timeAI);
UnitIssueOrder(gv_tHE_ONE_DEHAKA, Order(AbilityCommand("BurrowDehakaDown", 0)), c_orderQueueReplace);
while (!((UnitOrderCount(gv_tHE_ONE_DEHAKA) == 0))) {
Wait(1.0, c_timeGame);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus01.sc2map/MapScript.galaxy:3629
UnitIssueOrder(gv_tHE_ONE_DEHAKA, OrderTargetingPoint(AbilityCommand("move", 0), lv_moveTo), c_orderQueueReplace);
UnitIssueOrder(gv_tHE_ONE_DEHAKA, Order(AbilityCommand("BurrowDehakaDown", 0)), c_orderQueueAddToEnd);
while (!((UnitOrderCount(gv_tHE_ONE_DEHAKA) == 0))) {
Wait(1.0, c_timeAI);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2map — MapScript.galaxy:475
Wait(2.0, c_timeGame);
UnitIssueOrder(lp_tank, OrderTargetingPoint(AbilityCommand("move", 0), RegionRandomPoint(RegionFromId(22))), c_orderQueueReplace);
while (!(((UnitIsAlive(lp_tank) == false) || (UnitOrderCount(lp_tank) == 0)))) {
Wait(1.0, c_timeGame);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2map — MapScript.galaxy:1672
}
UnitGroupLoopEnd();
while (!(((UnitOrderCount(UnitGroupUnit(lv_retreatUnitGroup, 1)) == 0) || (libNtve_gf_UnitGroupIsDead(lv_retreatUnitGroup) == true)))) {
Wait(1.0, c_timeGame);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2map — MapScript.galaxy:327
while ((UnitGroupCount(lp_unitGroup, c_unitCountAlive) > 0)) {
UnitGroupIssueOrder(lp_unitGroup, OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(4)), c_orderQueueAddToEnd);
while (!((UnitOrderCount(UnitGroupUnit(lp_unitGroup, 1)) == 0))) {
Wait(0.25, c_timeGame);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2map — MapScript.galaxy:332
Wait(3.0, c_timeGame);
UnitGroupIssueOrder(lp_unitGroup, OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(128)), c_orderQueueAddToEnd);
while (!((UnitOrderCount(UnitGroupUnit(lp_unitGroup, 1)) == 0))) {
Wait(0.25, c_timeGame);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2map — MapScript.galaxy:547
// Implementation
UnitIssueOrder(lp_mutalisk, OrderTargetingPoint(AbilityCommand("move", 0), UnitGetPosition(gv_mutaSpawner)), c_orderQueueReplace);
while (!((UnitOrderCount(lp_mutalisk) == 0))) {
Wait(0.25, c_timeGame);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionultralisk.sc2map — MapScript.galaxy:1282
UnitGroupLoopBegin(UnitGroup("Ultralisk", c_playerAny, RegionFromId(27), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
while (!UnitGroupLoopDone()) {
if ((UnitGroupLoopCurrent() != gv_startingUltralisk) && (UnitOrderCount(UnitGroupLoopCurrent()) == 0)) {
if ((UnitIsAlive(gv_startingUltralisk) == true)) {
UnitIssueOrder(UnitGroupLoopCurrent(), OrderTargetingPoint(AbilityCommand("move", 0), UnitGetPosition(gv_startingUltralisk)), c_orderQueueAddToEnd);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionultralisk.sc2map — MapScript.galaxy:1372
UnitGroupIssueOrder(lv_guards, OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(224)), c_orderQueueReplace);
UnitGroupIssueOrder(lv_guards, OrderTargetingPoint(AbilityCommand("move", 0), RegionGetCenter(RegionFromId(16))), c_orderQueueAddToEnd);
while (!((UnitOrderCount(UnitGroupUnit(lv_guards, 1)) == 0))) {
Wait(0.25, c_timeGame);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab03.sc2map — MapScript.galaxy:741
// Implementation
auto0F8AD8A8_ae = UnitOrderCount(lp_u);
lv_index = 0;
for ( ; ( (auto0F8AD8A8_ai >= 0 && lv_index <= auto0F8AD8A8_ae) || (auto0F8AD8A8_ai < 0 && lv_index >= auto0F8AD8A8_ae) ) ; lv_index += auto0F8AD8A8_ai ) {
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace01.sc2map — MapScript.galaxy:522
lv_indexUnit = UnitGroupUnitFromEnd(auto4DE911B7_g, auto4DE911B7_u);
if (lv_indexUnit == null) { break; }
auto806F3943_ae = UnitOrderCount(lv_indexUnit);
lv_indexOrder = 1;
for ( ; ( (auto806F3943_ai >= 0 && lv_indexOrder <= auto806F3943_ae) || (auto806F3943_ai < 0 && lv_indexOrder >= auto806F3943_ae) ) ; lv_indexOrder += auto806F3943_ai ) {
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace01.sc2map — MapScript.galaxy:604
lv_center = lp_targetCenter;
while (true) {
while (!(((UnitIsAlive(lp_fighter) == false) || ((UnitTestState(lp_fighter, c_unitStateIdle) == true) && (UnitOrderCount(lp_fighter) == 0))))) {
Wait(1.0, c_timeGame);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace01.sc2map — MapScript.galaxy:3620
if (lv_indexUnit == null) { break; }
lv_idle = true;
auto1450145F_ae = UnitOrderCount(lv_indexUnit);
lv_indexOrder = 1;
for ( ; ( (auto1450145F_ai >= 0 && lv_indexOrder <= auto1450145F_ae) || (auto1450145F_ai < 0 && lv_indexOrder >= auto1450145F_ae) ) ; lv_indexOrder += auto1450145F_ai ) {
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace01.sc2map — MapScript.galaxy:4469
UnitIssueOrder(gv_pirateCapitalShip, OrderTargetingPoint(AbilityCommand("move", 0), PointWithOffsetPolar(UnitGetPosition(gv_hyperion), 8.0, (UnitGetFacing(gv_hyperion) - 120.0))), c_orderQueueReplace);
}
while (!(((UnitOrderCount(gv_pirateCapitalShip) == 0) || (libNtve_gf_UnitGroupIsDead(lv_pirateFighters) == true)))) {
Wait(0.25, c_timeGame);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace01.sc2map — MapScript.galaxy:4521
UnitIssueOrder(gv_pirateCapitalShip, OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(4)), c_orderQueueReplace);
UnitIssueOrder(gv_pirateCapitalShip, OrderTargetingPoint(AbilityCommand("move", 4), libNtve_gf_PointFromPositionAndAngle(PointFromId(4), 175.0)), c_orderQueueAddToEnd);
while (!((UnitOrderCount(gv_pirateCapitalShip) == 0))) {
Wait(0.25, c_timeGame);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus01.sc2map — MapScript.galaxy:1622
// Implementation
auto9042254E_ae = (UnitOrderCount(lp_harvester) - 1);
lv_index = 0;
for ( ; ( (auto9042254E_ai >= 0 && lv_index <= auto9042254E_ae) || (auto9042254E_ai < 0 && lv_index >= auto9042254E_ae) ) ; lv_index += auto9042254E_ai ) {
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus01.sc2map — MapScript.galaxy:3614
Wait(0.5, c_timeAI);
UnitIssueOrder(gv_tHE_ONE_DEHAKA, Order(AbilityCommand("BurrowDehakaDown", 0)), c_orderQueueReplace);
while (!((UnitOrderCount(gv_tHE_ONE_DEHAKA) == 0))) {
Wait(1.0, c_timeGame);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus01.sc2map — MapScript.galaxy:3629
UnitIssueOrder(gv_tHE_ONE_DEHAKA, OrderTargetingPoint(AbilityCommand("move", 0), lv_moveTo), c_orderQueueReplace);
UnitIssueOrder(gv_tHE_ONE_DEHAKA, Order(AbilityCommand("BurrowDehakaDown", 0)), c_orderQueueAddToEnd);
while (!((UnitOrderCount(gv_tHE_ONE_DEHAKA) == 0))) {
Wait(1.0, c_timeAI);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pkorhal01.sc2map/MapScript.galaxy:706
}
UnitIssueOrder(gv_stabilizers[lp_stabilizerIndex].lv_sCVs[lp_sCVIndex], OrderTargetingPoint(AbilityCommand("move", 0), lv_homePoint), c_orderQueueReplace);
while (!(((UnitIsAlive(gv_stabilizers[lp_stabilizerIndex].lv_sCVs[lp_sCVIndex]) == false) || (UnitOrderCount(gv_stabilizers[lp_stabilizerIndex].lv_sCVs[lp_sCVIndex]) == 0)))) {
Wait(0.0625, c_timeGame);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pkorhal01.sc2map/MapScript.galaxy:1055
}
while (!((UnitOrderCount(UnitGroupUnit(lv_patrolGroup, lv_validUnitIndex)) == 0))) {
Wait(1.0, c_timeGame);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pkorhal01.sc2map/MapScript.galaxy:1068
}
while (!((UnitOrderCount(UnitGroupUnit(lv_patrolGroup, lv_validUnitIndex)) == 0))) {
Wait(1.0, c_timeGame);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pkorhal01.sc2map/MapScript.galaxy:1081
}
while (!((UnitOrderCount(UnitGroupUnit(lv_patrolGroup, 1)) == 0))) {
Wait(1.0, c_timeGame);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pkorhal01.sc2map/MapScript.galaxy:1094
}
while (!((UnitOrderCount(UnitGroupUnit(lv_patrolGroup, 1)) == 0))) {
Wait(1.0, c_timeGame);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pkorhal02.sc2map/MapScript.galaxy:3140
}
UnitGroupIssueOrder(lv_dropships, OrderTargetingPoint(AbilityCommand("MedivacTransport", 2), RegionGetCenter(RegionFromId(12))), c_orderQueueReplace);
while (!((UnitOrderCount(UnitGroupUnit(lv_dropships, 1)) == 0) && (UnitOrderCount(UnitGroupUnit(lv_dropships, 2)) == 0))) {
Wait(1.0, c_timeAI);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pkorhal02.sc2map/MapScript.galaxy:3140
}
UnitGroupIssueOrder(lv_dropships, OrderTargetingPoint(AbilityCommand("MedivacTransport", 2), RegionGetCenter(RegionFromId(12))), c_orderQueueReplace);
while (!((UnitOrderCount(UnitGroupUnit(lv_dropships, 1)) == 0) && (UnitOrderCount(UnitGroupUnit(lv_dropships, 2)) == 0))) {
Wait(1.0, c_timeAI);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pkorhal02.sc2map/MapScript.galaxy:3500
lv_battlecruisers = UnitLastCreatedGroup();
UnitGroupIssueOrder(UnitLastCreatedGroup(), OrderTargetingPoint(AbilityCommand("attack", 0), RegionGetCenter(RegionFromId(24))), c_orderQueueReplace);
while (!((UnitOrderCount(UnitGroupUnit(lv_battlecruisers, 1)) == 0))) {
Wait(1.0, c_timeAI);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pshakuras01.sc2map/MapScript.galaxy:553
lv_currentTarget = lv_modOffsetPoint;
}
while (!((UnitOrderCount(lp_shuttle) <= 2))) {
Wait(0.1, c_timeGame);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pshakuras01.sc2map/MapScript.galaxy:942
auto65C75468_var = UnitGroupUnitFromEnd(auto65C75468_g, auto65C75468_u);
if (auto65C75468_var == null) { break; }
if ((UnitOrderCount(auto65C75468_var) == 0)) {
UnitIssueOrder(auto65C75468_var, OrderTargetingPoint(AbilityCommand("attack", 0), RegionRandomPoint(lp_cargoAttackTarget)), c_orderQueueReplace);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pshakuras01.sc2map/MapScript.galaxy:4334
while ((UnitIsAlive(lv_overseer) == true)) {
UnitIssueOrder(lv_overseer, OrderTargetingPoint(AbilityCommand("move", 0), lv_patrolPath[1]), c_orderQueueReplace);
while (!((UnitOrderCount(lv_overseer) == 0))) {
Wait(1.0, c_timeAI);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pshakuras01.sc2map/MapScript.galaxy:4339
Wait(3.0, c_timeAI);
UnitIssueOrder(lv_overseer, OrderTargetingPoint(AbilityCommand("move", 0), lv_patrolPath[2]), c_orderQueueReplace);
while (!((UnitOrderCount(lv_overseer) == 0))) {
Wait(1.0, c_timeAI);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pshakuras01.sc2map/MapScript.galaxy:4374
while ((UnitIsAlive(lv_overseer) == true)) {
UnitIssueOrder(lv_overseer, OrderTargetingPoint(AbilityCommand("move", 0), lv_patrolPath[1]), c_orderQueueReplace);
while (!((UnitOrderCount(lv_overseer) == 0))) {
Wait(1.0, c_timeAI);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pshakuras01.sc2map/MapScript.galaxy:4379
Wait(3.0, c_timeAI);
UnitIssueOrder(lv_overseer, OrderTargetingPoint(AbilityCommand("move", 0), lv_patrolPath[2]), c_orderQueueReplace);
while (!((UnitOrderCount(lv_overseer) == 0))) {
Wait(1.0, c_timeAI);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pshakuras01.sc2map/MapScript.galaxy:4435
else {
}
while (!((UnitOrderCount(lv_overseer) == 0))) {
Wait(1.0, c_timeAI);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pshakuras01.sc2map/MapScript.galaxy:4470
while ((UnitIsAlive(lv_overseer) == true)) {
UnitIssueOrder(lv_overseer, OrderTargetingPoint(AbilityCommand("move", 0), lv_patrolPath[1]), c_orderQueueReplace);
while (!((UnitOrderCount(lv_overseer) == 0))) {
Wait(1.0, c_timeAI);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pshakuras01.sc2map/MapScript.galaxy:4475
Wait(3.0, c_timeAI);
UnitIssueOrder(lv_overseer, OrderTargetingPoint(AbilityCommand("move", 0), lv_patrolPath[2]), c_orderQueueReplace);
while (!((UnitOrderCount(lv_overseer) == 0))) {
Wait(1.0, c_timeAI);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pshakuras01.sc2map/MapScript.galaxy:4568
else {
}
while (!((UnitOrderCount(lv_overseers[1]) == 0) && (UnitOrderCount(lv_overseers[2]) == 0))) {
Wait(1.0, c_timeAI);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/ptaldarim01.sc2map/MapScript.galaxy:670
// Implementation
while (!((UnitOrderCount(lp_prism) == 0))) {
Wait(1.0, c_timeGame);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/ptaldarim01.sc2map/MapScript.galaxy:723
UnitIssueOrder(lp_prism, OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(612)), c_orderQueueReplace);
}
while (!(((UnitOrderCount(lp_prism) == 0) || (UnitIsAlive(lp_prism) == false) || (libVCMI_gf_GameIsOver() == true)))) {
Wait(1.0, c_timeGame);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pulnar03.sc2map/MapScript.galaxy:3096
}
if ((UnitGetType(EventUnit()) == "HotSRaptor") && (UnitOrderCount(EventUnit()) == 0)) {
UnitIssueOrder(EventUnit(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(796)), c_orderQueueReplace);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pkorhal01.sc2map — MapScript.galaxy:706
}
UnitIssueOrder(gv_stabilizers[lp_stabilizerIndex].lv_sCVs[lp_sCVIndex], OrderTargetingPoint(AbilityCommand("move", 0), lv_homePoint), c_orderQueueReplace);
while (!(((UnitIsAlive(gv_stabilizers[lp_stabilizerIndex].lv_sCVs[lp_sCVIndex]) == false) || (UnitOrderCount(gv_stabilizers[lp_stabilizerIndex].lv_sCVs[lp_sCVIndex]) == 0)))) {
Wait(0.0625, c_timeGame);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pkorhal01.sc2map — MapScript.galaxy:1055
}
while (!((UnitOrderCount(UnitGroupUnit(lv_patrolGroup, lv_validUnitIndex)) == 0))) {
Wait(1.0, c_timeGame);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pkorhal01.sc2map — MapScript.galaxy:1068
}
while (!((UnitOrderCount(UnitGroupUnit(lv_patrolGroup, lv_validUnitIndex)) == 0))) {
Wait(1.0, c_timeGame);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pkorhal01.sc2map — MapScript.galaxy:1081
}
while (!((UnitOrderCount(UnitGroupUnit(lv_patrolGroup, 1)) == 0))) {
Wait(1.0, c_timeGame);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pkorhal01.sc2map — MapScript.galaxy:1094
}
while (!((UnitOrderCount(UnitGroupUnit(lv_patrolGroup, 1)) == 0))) {
Wait(1.0, c_timeGame);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pkorhal02.sc2map — MapScript.galaxy:3140
}
UnitGroupIssueOrder(lv_dropships, OrderTargetingPoint(AbilityCommand("MedivacTransport", 2), RegionGetCenter(RegionFromId(12))), c_orderQueueReplace);
while (!((UnitOrderCount(UnitGroupUnit(lv_dropships, 1)) == 0) && (UnitOrderCount(UnitGroupUnit(lv_dropships, 2)) == 0))) {
Wait(1.0, c_timeAI);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pkorhal02.sc2map — MapScript.galaxy:3140
}
UnitGroupIssueOrder(lv_dropships, OrderTargetingPoint(AbilityCommand("MedivacTransport", 2), RegionGetCenter(RegionFromId(12))), c_orderQueueReplace);
while (!((UnitOrderCount(UnitGroupUnit(lv_dropships, 1)) == 0) && (UnitOrderCount(UnitGroupUnit(lv_dropships, 2)) == 0))) {
Wait(1.0, c_timeAI);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pkorhal02.sc2map — MapScript.galaxy:3500
lv_battlecruisers = UnitLastCreatedGroup();
UnitGroupIssueOrder(UnitLastCreatedGroup(), OrderTargetingPoint(AbilityCommand("attack", 0), RegionGetCenter(RegionFromId(24))), c_orderQueueReplace);
while (!((UnitOrderCount(UnitGroupUnit(lv_battlecruisers, 1)) == 0))) {
Wait(1.0, c_timeAI);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras01.sc2map — MapScript.galaxy:553
lv_currentTarget = lv_modOffsetPoint;
}
while (!((UnitOrderCount(lp_shuttle) <= 2))) {
Wait(0.1, c_timeGame);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras01.sc2map — MapScript.galaxy:942
auto65C75468_var = UnitGroupUnitFromEnd(auto65C75468_g, auto65C75468_u);
if (auto65C75468_var == null) { break; }
if ((UnitOrderCount(auto65C75468_var) == 0)) {
UnitIssueOrder(auto65C75468_var, OrderTargetingPoint(AbilityCommand("attack", 0), RegionRandomPoint(lp_cargoAttackTarget)), c_orderQueueReplace);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras01.sc2map — MapScript.galaxy:4334
while ((UnitIsAlive(lv_overseer) == true)) {
UnitIssueOrder(lv_overseer, OrderTargetingPoint(AbilityCommand("move", 0), lv_patrolPath[1]), c_orderQueueReplace);
while (!((UnitOrderCount(lv_overseer) == 0))) {
Wait(1.0, c_timeAI);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras01.sc2map — MapScript.galaxy:4339
Wait(3.0, c_timeAI);
UnitIssueOrder(lv_overseer, OrderTargetingPoint(AbilityCommand("move", 0), lv_patrolPath[2]), c_orderQueueReplace);
while (!((UnitOrderCount(lv_overseer) == 0))) {
Wait(1.0, c_timeAI);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras01.sc2map — MapScript.galaxy:4374
while ((UnitIsAlive(lv_overseer) == true)) {
UnitIssueOrder(lv_overseer, OrderTargetingPoint(AbilityCommand("move", 0), lv_patrolPath[1]), c_orderQueueReplace);
while (!((UnitOrderCount(lv_overseer) == 0))) {
Wait(1.0, c_timeAI);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras01.sc2map — MapScript.galaxy:4379
Wait(3.0, c_timeAI);
UnitIssueOrder(lv_overseer, OrderTargetingPoint(AbilityCommand("move", 0), lv_patrolPath[2]), c_orderQueueReplace);
while (!((UnitOrderCount(lv_overseer) == 0))) {
Wait(1.0, c_timeAI);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras01.sc2map — MapScript.galaxy:4435
else {
}
while (!((UnitOrderCount(lv_overseer) == 0))) {
Wait(1.0, c_timeAI);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras01.sc2map — MapScript.galaxy:4470
while ((UnitIsAlive(lv_overseer) == true)) {
UnitIssueOrder(lv_overseer, OrderTargetingPoint(AbilityCommand("move", 0), lv_patrolPath[1]), c_orderQueueReplace);
while (!((UnitOrderCount(lv_overseer) == 0))) {
Wait(1.0, c_timeAI);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras01.sc2map — MapScript.galaxy:4475
Wait(3.0, c_timeAI);
UnitIssueOrder(lv_overseer, OrderTargetingPoint(AbilityCommand("move", 0), lv_patrolPath[2]), c_orderQueueReplace);
while (!((UnitOrderCount(lv_overseer) == 0))) {
Wait(1.0, c_timeAI);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras01.sc2map — MapScript.galaxy:4568
else {
}
while (!((UnitOrderCount(lv_overseers[1]) == 0) && (UnitOrderCount(lv_overseers[2]) == 0))) {
Wait(1.0, c_timeAI);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ptaldarim01.sc2map — MapScript.galaxy:670
// Implementation
while (!((UnitOrderCount(lp_prism) == 0))) {
Wait(1.0, c_timeGame);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ptaldarim01.sc2map — MapScript.galaxy:723
UnitIssueOrder(lp_prism, OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(612)), c_orderQueueReplace);
}
while (!(((UnitOrderCount(lp_prism) == 0) || (UnitIsAlive(lp_prism) == false) || (libVCMI_gf_GameIsOver() == true)))) {
Wait(1.0, c_timeGame);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pulnar03.sc2map — MapScript.galaxy:3096
}
if ((UnitGetType(EventUnit()) == "HotSRaptor") && (UnitOrderCount(EventUnit()) == 0)) {
UnitIssueOrder(EventUnit(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(796)), c_orderQueueReplace);
}
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactProtAI.galaxy:976
string type = AIGetBullyType(aiUnit);
if (UnitOrderCount(aiUnit) > 0) {
return;
}
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactProtAI.galaxy:1006
string type = AIGetBullyType(aiUnit);
if (UnitOrderCount(aiUnit) > 0) {
return;
}
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactTerrAI.galaxy:644
// If a bully type is set, check to see if we're in the right mode if idle.
if (type != null && onGround == 0 && inAir == 0 && UnitOrderCount(aiUnit) == 0) {
if (type == UnitGetType(aiUnit)) {
return null;
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactTerrAI.galaxy:721
// interrupt the queued attack move order we get when we were told to land.
//
if (inAir == 0 && UnitOrderCount(aiUnit) > 0) {
return;
}
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactTerrAI.galaxy:1774
if (onGroundCount == 0 && inAirCount == 0) {
// no targets nearby
if (UnitOrderCount(aiUnit) != 0) {
// always let any orders finish
return;
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.stormdata/LibPEB1.galaxy:3248
}
else {
if ((UnitOrderCount(lp_baneling) == 0)) {
UnitIssueOrder(lp_baneling, OrderTargetingUnit(AbilityCommand("ArchangelSuperBanelingChase", 0), lv_target), c_orderQueueReplace);
}
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.stormdata/LibPEB1.galaxy:3571
libNtve_gf_SendActorMessageToUnit(lv_medivac, "Signal Arrive");
UnitIssueOrder(lv_medivac, OrderTargetingPoint(AbilityCommand("move", 0), PointWithOffsetPolar(lv_pickupLocation, 1.0, lv_angle)), c_orderQueueAddToEnd);
while (!((UnitOrderCount(lv_medivac) == 0))) {
Wait(1.0, c_timeGame);
}
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.stormdata/LibPEB1.galaxy:3583
}
Wait(1.0, c_timeGame);
while (!((UnitOrderCount(lv_medivac) == 0))) {
Wait(1.0, c_timeGame);
}
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.stormdata/LibPEB1.galaxy:3906
}
Wait(2.0, c_timeGame);
while (!((UnitOrderCount(lv_mercMedivac) == 0))) {
Wait(1.0, c_timeGame);
}
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.stormdata/LibPEB1.galaxy:3931
lv_mercRaven = UnitLastCreated();
}
while (!((UnitOrderCount(lv_mercMedivac) == 0))) {
Wait(1.0, c_timeGame);
}
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.stormdata/LibPEB1.galaxy:7567
libGame_gv_players[lv_player].lv_cameraPlayerUnitGroupToFocusOn = libNtve_gf_ConvertUnitToUnitGroup(lv_medivac);
libGame_gf_CameraUpdateCameraForPlayer(lv_player);
while (!((UnitOrderCount(lv_medivac) == 0))) {
Wait(1.0, c_timeGame);
}
mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod — base.stormdata/LibPEB1.galaxy:1528
auto2F94705F_var = UnitGroupUnitFromEnd(auto2F94705F_g, auto2F94705F_u);
if (auto2F94705F_var == null) { break; }
if ((RandomInt(1, 16) == 1) && (UnitOrderCount(auto2F94705F_var) == 0)) {
UnitIssueOrder(auto2F94705F_var, OrderTargetingPoint(AbilityCommand("attack", 0), RegionRandomPoint(lp_region)), c_orderQueueReplace);
}
mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod — base.stormdata/LibPEB1.galaxy:6893
UnitDestroyAIThinkTree(libPEB1_gv_slivan);
UnitIssueOrder(libPEB1_gv_slivan, Order(AbilityCommand("stop", 0)), c_orderQueueReplace);
while (((UnitGetPosition(libPEB1_gv_slivan) != libPEB1_gv_pEB1SlivanPhase2Point) || (UnitOrderCount(libPEB1_gv_slivan) > 0))) {
UnitIssueOrder(libPEB1_gv_slivan, OrderTargetingPoint(AbilityCommand("move", 0), libPEB1_gv_pEB1SlivanPhase2Point), c_orderQueueReplace);
Wait(0.25, c_timeGame);
mods/heroesbrawlmods/brawlmapmods/hanamurapayloadpush.stormmod — base.stormdata/LibMHPP.galaxy:395
}
if ((UnitOrderCount(lp_payloadUnit) == 0) && (lv_currentDestinationPointIndex == libMHPP_gv_payloadPath.lv_finalWaypointIndex)) {
libMHPP_gv_payloadPath.lv_payloadCurrentIndex += 1;
lv_currentDestinationPointIndex += 1;
mods/heroesbrawlmods/brawlmapmods/hanamurapayloadpush.stormmod — base.stormdata/LibMHPP.galaxy:500
}
if ((UnitHasBehavior2(lp_payloadUnit, "PayloadAtStartPointBehavior") == false) && (UnitOrderCount(lp_payloadUnit) == 0) && (lv_currentDestinationPointIndex == lv_lastKnownCheckpointIndex)) {
libMHPP_gv_payloadPath.lv_payloadCurrentIndex -= 1;
lv_currentDestinationPointIndex -= 1;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:1392
// Implementation
while ((UnitIsAlive(lp_ultraliskUnit) == true)) {
if ((UnitOrderCount(lp_ultraliskUnit) == 0)) {
UnitIssueOrder(lp_ultraliskUnit, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(lp_ultraliskUnit)), c_orderQueueReplace);
Wait(0.25, c_timeGame);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:1395
UnitIssueOrder(lp_ultraliskUnit, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(lp_ultraliskUnit)), c_orderQueueReplace);
Wait(0.25, c_timeGame);
if ((UnitOrderCount(lp_ultraliskUnit) == 0)) {
if ((UnitIsAlive(lp_ultraliskUnit) == false)) {
return ;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:3152
else {
lv_autoAquired = true;
if ((UnitOrderCount(lv_rexxar) != 0) && (OrderGetAbilityCommand(UnitOrder(lv_rexxar, 0)) != AbilityCommand("RexxarSpiritSwoop", 0)) && (OrderGetAbilityCommand(UnitOrder(lv_rexxar, 0)) != AbilityCommand("RexxarUnleashTheBoars", 0)) && (UnitGetType(OrderGetTargetItem(UnitOrder(lv_rexxar, 0))) != "RexxarFlare") && (OrderGetTargetPosition(UnitOrder(lv_rexxar, 0)) != Point(0.0, 0.0)) && (DistanceBetweenPoints(UnitGetPosition(lv_misha), UnitGetPosition(lv_rexxar)) <= 3.0) && ((OrderGetAbilityCommand(UnitOrder(lv_rexxar, 0)) != AbilityCommand("attack", 0)) || (UnitIsValid(OrderGetTargetUnit(UnitOrder(lv_rexxar, 0))) == false))) {
UnitAbilityEnable(lv_misha, "attack", true);
libGDHL_gf_HeroRexxarOrderMishaMoveNearPoint(lv_rexxar, lv_misha, OrderGetTargetPosition(UnitOrder(lv_rexxar, 0)));
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:3162
else {
if ((UnitTechTreeBehaviorCount(lv_rexxar, "ShrubStatusController", c_techCountQueuedOrBetter) <= 0)) {
if ((DistanceBetweenPoints(UnitGetPosition(lv_misha), UnitGetPosition(lv_rexxar)) > 3.0) && ((OrderGetAbilityCommand(UnitOrder(lv_misha, 0)) == AbilityCommand("attack", 0)) || (UnitOrderCount(lv_misha) == 0) || (DistanceBetweenPoints(OrderGetTargetPosition(UnitOrder(lv_misha, 0)), UnitGetPosition(lv_rexxar)) > 6.0))) {
UnitIssueOrder(lv_misha, OrderTargetingPoint(AbilityCommand("move", 0), PointWithOffsetPolar(UnitGetPosition(lv_rexxar), 3.0, libNtve_gf_RandomAngle())), c_orderQueueReplace);
UnitAbilityEnable(lv_misha, "attack", false);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:3167
}
else {
if ((UnitOrderCount(lv_misha) > 0) && (DistanceBetweenPoints(UnitGetPosition(lv_misha), UnitGetPosition(lv_rexxar)) <= 2.0)) {
UnitIssueOrder(lv_misha, Order(AbilityCommand("stop", 0)), c_orderQueueReplace);
UnitAbilityEnable(lv_misha, "attack", true);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:3203
}
if ((UnitOrderCount(lv_rexxar) != 0) && (UnitBehaviorEnabled(lv_misha, "RexxarMishaHold") == false) && (libGDHL_gv_heroRexxarMishaLastKnownTargetLocation[lv_player] == null)) {
if ((OrderGetAbilityCommand(UnitOrder(lv_rexxar, 0)) == AbilityCommand("attack", 0))) {
if ((UnitOrderIsAcquired(lv_rexxar, 0) == true) && (OrderGetTargetPosition(UnitOrder(lv_rexxar, 1)) == UnitGetPosition(lv_rexxar))) {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:3245
}
}
if ((((DistanceBetweenPoints(UnitGetPosition(lv_misha), UnitGetPosition(lv_rexxar)) >= 4.0) && (UnitOrderCount(lv_misha) == 0)) || ((DistanceBetweenPoints(UnitGetPosition(lv_misha), UnitGetPosition(lv_rexxar)) >= 5.0) && (OrderGetAbilityCommand(UnitOrder(lv_misha, 0)) == AbilityCommand("attack", 0))))) {
if ((OrderGetAbilityCommand(UnitOrder(lv_rexxar, 0)) == AbilityCommand("move", 0))) {
lv_currentState = libGDHL_ge_MishaState_Moving;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:3282
}
else if (auto3742AA88_val == libGDHL_ge_MishaState_Moving) {
if ((UnitOrderCount(lv_misha) == 0) && (OrderGetAbilityCommand(UnitOrder(lv_rexxar, 0)) != AbilityCommand("FountainDrink", 0))) {
lv_currentState = libGDHL_ge_MishaState_Idle;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:3286
}
else {
if (((UnitOrderCount(lv_rexxar) == 0) || (OrderGetAbilityCommand(UnitOrder(lv_rexxar, 0)) == AbilityCommand("move", 2)))) {
if (((DistanceBetweenPoints(UnitGetPosition(lv_misha), UnitGetPosition(lv_rexxar)) <= 4.0) || (DistanceBetweenPoints(OrderGetTargetPosition(UnitOrder(lv_misha, 0)), UnitGetPosition(lv_rexxar)) > 5.0))) {
UnitIssueOrder(lv_misha, Order(AbilityCommand("stop", 0)), c_orderQueueReplace);