# Target Unit For Order
Grammar — Target unit for o
Flags —Native
|Function
Returns the target for the order if the target is a unit.
# Arguments
order
— Order
Returns — unit
native unit OrderGetTargetUnit(order inOrder);
# Related
Category: Order / Order Properties
- Player For Order —
int
— OrderGetPlayer - Ability Command For Order —
abilcmd
— OrderGetAbilityCommand - Flag Is Enabled For Order —
bool
— OrderGetFlag - Target Item For Order —
unit
— OrderGetTargetItem - Target Point For Order —
point
— OrderGetTargetPoint - Target Position For Order —
point
— OrderGetTargetPosition - Target Type For Order —
int
<preset::OrderTargetType> — OrderGetTargetType - Target Unit For Order —
unit
— OrderGetTargetUnit - Order Is Valid —
bool
— UnitOrderIsValid - Order Set Flag —
void
— OrderSetFlag
# Examples
campaigns/liberty.sc2campaign — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:64
enemyOrd = UnitOrder(unitToCheck, 0);
if (AIIsAttackOrder(enemyOrd) && OrderGetTargetUnit(enemyOrd) == aiUnit) {
numActualThreats = numActualThreats + 1;
}
campaigns/liberty.sc2campaign — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:91
enemyOrd = UnitOrder(unitToCheck, 0);
if (AIIsAttackOrder(enemyOrd) && OrderGetTargetUnit(enemyOrd) == aiUnit) {
numActualThreatsInBarrage = numActualThreatsInBarrage + 1;
}
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/ttosh02.sc2map — MapScript.galaxy:1993
}
if (!((OrderGetTargetUnit(UnitOrder(EventUnit(), 0)) != gv_terrazineHarvesting))) {
return false;
}
campaigns/swarm.sc2campaign — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:64
enemyOrd = UnitOrder(unitToCheck, 0);
if (AIIsAttackOrder(enemyOrd) && OrderGetTargetUnit(enemyOrd) == aiUnit) {
numActualThreats = numActualThreats + 1;
}
campaigns/swarm.sc2campaign — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:91
enemyOrd = UnitOrder(unitToCheck, 0);
if (AIIsAttackOrder(enemyOrd) && OrderGetTargetUnit(enemyOrd) == aiUnit) {
numActualThreatsInBarrage = numActualThreatsInBarrage + 1;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab03.sc2map/MapScript.galaxy:3578
}
if (!((UnitGetType(OrderGetTargetUnit(EventUnitOrder())) == "Extractor"))) {
return false;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab03.sc2map/MapScript.galaxy:3596
if (auto076181A6_var == null) { break; }
if ((libHots_gf_DifficultyValueSwarmBoolean(true, true, false) == true)) {
gf_CreateInfoText(OrderGetTargetUnit(EventUnitOrder()));
}
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/zlab03.sc2map — MapScript.galaxy:3578
}
if (!((UnitGetType(OrderGetTargetUnit(EventUnitOrder())) == "Extractor"))) {
return false;
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab03.sc2map — MapScript.galaxy:3596
if (auto076181A6_var == null) { break; }
if ((libHots_gf_DifficultyValueSwarmBoolean(true, true, false) == true)) {
gf_CreateInfoText(OrderGetTargetUnit(EventUnitOrder()));
}
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/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:2400
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:2400
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:2472
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;
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:2483
if (auto4D844F3D_var == null) { break; }
lv_currentOrder = UnitOrder(auto4D844F3D_var, 0);
if ((OrderGetAbilityCommand(lv_currentOrder) == AbilityCommand("DroneHarvest", 0)) && (OrderGetTargetUnit(lv_currentOrder) == lp_extractor)) {
lv_droneCount += 1;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:2914
}
if (!((UnitGetOwner(OrderGetTargetUnit(EventUnitOrder())) == gv_p01_USER))) {
return false;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:2948
IntLoopBegin(0, 10);
for ( ; !IntLoopDone() ; IntLoopStep() ) {
if ((OrderGetAbilityCommand(UnitOrder(UnitGroupLoopCurrent(), IntLoopCurrent())) == AbilityCommand("attack", 0)) && (OrderGetTargetType(UnitOrder(UnitGroupLoopCurrent(), IntLoopCurrent())) == c_orderTargetUnit) && (UnitGetOwner(OrderGetTargetUnit(UnitOrder(UnitGroupLoopCurrent(), IntLoopCurrent()))) == gv_p01_USER)) {
UnitGroupAdd(gv_combatHelperUnitGroup, UnitGroupLoopCurrent());
ActorSend(libNtve_gf_MainActorofUnit(UnitGroupLoopCurrent()), "HaloStart");
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:3014
}
if (!(((OrderGetAbilityCommand(EventUnitOrder()) != AbilityCommand("attack", 0)) || ((OrderGetAbilityCommand(EventUnitOrder()) == AbilityCommand("attack", 0)) && (OrderGetTargetType(EventUnitOrder()) != c_orderTargetUnit)) || ((OrderGetAbilityCommand(EventUnitOrder()) == AbilityCommand("attack", 0)) && (OrderGetTargetType(EventUnitOrder()) == c_orderTargetUnit) && (UnitGetOwner(OrderGetTargetUnit(EventUnitOrder())) != gv_p01_USER))))) {
return false;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:3162
}
if (!(((OrderGetTargetType(EventUnitOrder()) == c_orderTargetPoint) || ((OrderGetTargetType(EventUnitOrder()) == c_orderTargetUnit) && (UnitGetOwner(OrderGetTargetUnit(EventUnitOrder())) != gv_p01_USER))))) {
return false;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:3547
UnitGroupLoopBegin(UnitGroup(lv_workerType, gv_p01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32))), 0));
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
if ((((OrderGetAbilityCommand(UnitOrder(UnitGroupLoopCurrent(), 0)) == lv_gatherAbil) && (UnitGetType(OrderGetTargetUnit(UnitOrder(UnitGroupLoopCurrent(), 0))) == lv_geyserType)) || ((OrderGetAbilityCommand(UnitOrder(UnitGroupLoopCurrent(), 0)) == lv_gatherReturnAbil) && (UnitHasBehavior2(UnitGroupLoopCurrent(), lv_carryBehavior) == true)))) {
}
else {
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:3679
}
if (!((((UnitGetType(EventUnit()) == "SCV") && (UnitGetType(OrderGetTargetUnit(EventUnitOrder())) == "SCV") && ((OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("SCVHarvest", 0)) || (OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("SCVHarvest", 1)))) || ((UnitGetType(EventUnit()) == "Drone") && (UnitGetType(OrderGetTargetUnit(EventUnitOrder())) == "Drone") && ((OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("DroneHarvest", 0)) || (OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("DroneHarvest", 1)))) || ((UnitGetType(EventUnit()) == "Probe") && (UnitGetType(OrderGetTargetUnit(EventUnitOrder())) == "Probe") && ((OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("ProbeHarvest", 0)) || (OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("ProbeHarvest", 1))))))) {
return false;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:3679
}
if (!((((UnitGetType(EventUnit()) == "SCV") && (UnitGetType(OrderGetTargetUnit(EventUnitOrder())) == "SCV") && ((OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("SCVHarvest", 0)) || (OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("SCVHarvest", 1)))) || ((UnitGetType(EventUnit()) == "Drone") && (UnitGetType(OrderGetTargetUnit(EventUnitOrder())) == "Drone") && ((OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("DroneHarvest", 0)) || (OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("DroneHarvest", 1)))) || ((UnitGetType(EventUnit()) == "Probe") && (UnitGetType(OrderGetTargetUnit(EventUnitOrder())) == "Probe") && ((OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("ProbeHarvest", 0)) || (OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("ProbeHarvest", 1))))))) {
return false;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:3679
}
if (!((((UnitGetType(EventUnit()) == "SCV") && (UnitGetType(OrderGetTargetUnit(EventUnitOrder())) == "SCV") && ((OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("SCVHarvest", 0)) || (OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("SCVHarvest", 1)))) || ((UnitGetType(EventUnit()) == "Drone") && (UnitGetType(OrderGetTargetUnit(EventUnitOrder())) == "Drone") && ((OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("DroneHarvest", 0)) || (OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("DroneHarvest", 1)))) || ((UnitGetType(EventUnit()) == "Probe") && (UnitGetType(OrderGetTargetUnit(EventUnitOrder())) == "Probe") && ((OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("ProbeHarvest", 0)) || (OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("ProbeHarvest", 1))))))) {
return false;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:3679
}
if (!((((UnitGetType(EventUnit()) == "SCV") && (UnitGetType(OrderGetTargetUnit(EventUnitOrder())) == "SCV") && ((OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("SCVHarvest", 0)) || (OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("SCVHarvest", 1)))) || ((UnitGetType(EventUnit()) == "Drone") && (UnitGetType(OrderGetTargetUnit(EventUnitOrder())) == "Drone") && ((OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("DroneHarvest", 0)) || (OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("DroneHarvest", 1)))) || ((UnitGetType(EventUnit()) == "Probe") && (UnitGetType(OrderGetTargetUnit(EventUnitOrder())) == "Probe") && ((OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("ProbeHarvest", 0)) || (OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("ProbeHarvest", 1))))))) {
return false;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:3679
}
if (!((((UnitGetType(EventUnit()) == "SCV") && (UnitGetType(OrderGetTargetUnit(EventUnitOrder())) == "SCV") && ((OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("SCVHarvest", 0)) || (OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("SCVHarvest", 1)))) || ((UnitGetType(EventUnit()) == "Drone") && (UnitGetType(OrderGetTargetUnit(EventUnitOrder())) == "Drone") && ((OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("DroneHarvest", 0)) || (OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("DroneHarvest", 1)))) || ((UnitGetType(EventUnit()) == "Probe") && (UnitGetType(OrderGetTargetUnit(EventUnitOrder())) == "Probe") && ((OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("ProbeHarvest", 0)) || (OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("ProbeHarvest", 1))))))) {
return false;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur02.sc2map/MapScript.galaxy:3332
auto220BF287_var = UnitGroupUnitFromEnd(auto220BF287_g, auto220BF287_u);
if (auto220BF287_var == null) { break; }
if ((!((((OrderGetAbilityCommand(UnitOrder(auto220BF287_var, 0)) == AbilityCommand("ProbeHarvest", 0)) && (UnitGetType(OrderGetTargetUnit(UnitOrder(auto220BF287_var, 0))) == "Assimilator")) || ((OrderGetAbilityCommand(UnitOrder(auto220BF287_var, 0)) == AbilityCommand("ProbeHarvest", 1)) && (UnitHasBehavior2(auto220BF287_var, "CarryHarvestableVespeneGeyserGasProtoss") == true)))))) {
UnitGroupAdd(lv_validProbes, auto220BF287_var);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur02.sc2map/MapScript.galaxy:3453
auto70400E0A_var = UnitGroupUnitFromEnd(auto70400E0A_g, auto70400E0A_u);
if (auto70400E0A_var == null) { break; }
if ((((OrderGetAbilityCommand(UnitOrder(auto70400E0A_var, 0)) == AbilityCommand("ProbeHarvest", 0)) && (UnitGetType(OrderGetTargetUnit(UnitOrder(auto70400E0A_var, 0))) == "Assimilator")) || ((OrderGetAbilityCommand(UnitOrder(auto70400E0A_var, 0)) == AbilityCommand("ProbeHarvest", 1)) && (UnitHasBehavior2(auto70400E0A_var, "CarryHarvestableVespeneGeyserGasProtoss") == true)))) {
lv_probesOnGas += 1;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur02.sc2map/MapScript.galaxy:3811
auto4D4BD4E5_var = UnitGroupUnitFromEnd(auto4D4BD4E5_g, auto4D4BD4E5_u);
if (auto4D4BD4E5_var == null) { break; }
if ((((OrderGetAbilityCommand(UnitOrder(auto4D4BD4E5_var, 0)) == AbilityCommand("ProbeHarvest", 0)) && (UnitGetType(OrderGetTargetUnit(UnitOrder(auto4D4BD4E5_var, 0))) == "Assimilator")) || ((OrderGetAbilityCommand(UnitOrder(auto4D4BD4E5_var, 0)) == AbilityCommand("ProbeHarvest", 1)) && (UnitHasBehavior2(auto4D4BD4E5_var, "CarryHarvestableVespeneGeyserGasProtoss") == true)))) {
lv_probesOnGas += 1;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/sc2epilogue01.sc2map/MapScript.galaxy:6475
libNtve_gf_MakeUnitLookAtUnit(gv_narud, "SlowStanding", EventUnitTargetUnit(), "Ref_Center");
while ((UnitIsAlive(EventUnitTargetUnit()) == true) && (EventUnitTargetUnit() == OrderGetTargetUnit(UnitOrder(gv_narud, 0)))) {
if ((AngleBetweenPoints(EventUnitTargetPoint(), UnitGetPosition(EventUnit())) >= lv_clampLeft) && (AngleBetweenPoints(EventUnitTargetPoint(), UnitGetPosition(EventUnit())) <= lv_clamRight)) {
if ((lv_lookingAtTarget == false)) {
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:2914
}
if (!((UnitGetOwner(OrderGetTargetUnit(EventUnitOrder())) == gv_p01_USER))) {
return false;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:2948
IntLoopBegin(0, 10);
for ( ; !IntLoopDone() ; IntLoopStep() ) {
if ((OrderGetAbilityCommand(UnitOrder(UnitGroupLoopCurrent(), IntLoopCurrent())) == AbilityCommand("attack", 0)) && (OrderGetTargetType(UnitOrder(UnitGroupLoopCurrent(), IntLoopCurrent())) == c_orderTargetUnit) && (UnitGetOwner(OrderGetTargetUnit(UnitOrder(UnitGroupLoopCurrent(), IntLoopCurrent()))) == gv_p01_USER)) {
UnitGroupAdd(gv_combatHelperUnitGroup, UnitGroupLoopCurrent());
ActorSend(libNtve_gf_MainActorofUnit(UnitGroupLoopCurrent()), "HaloStart");
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:3014
}
if (!(((OrderGetAbilityCommand(EventUnitOrder()) != AbilityCommand("attack", 0)) || ((OrderGetAbilityCommand(EventUnitOrder()) == AbilityCommand("attack", 0)) && (OrderGetTargetType(EventUnitOrder()) != c_orderTargetUnit)) || ((OrderGetAbilityCommand(EventUnitOrder()) == AbilityCommand("attack", 0)) && (OrderGetTargetType(EventUnitOrder()) == c_orderTargetUnit) && (UnitGetOwner(OrderGetTargetUnit(EventUnitOrder())) != gv_p01_USER))))) {
return false;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:3162
}
if (!(((OrderGetTargetType(EventUnitOrder()) == c_orderTargetPoint) || ((OrderGetTargetType(EventUnitOrder()) == c_orderTargetUnit) && (UnitGetOwner(OrderGetTargetUnit(EventUnitOrder())) != gv_p01_USER))))) {
return false;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:3547
UnitGroupLoopBegin(UnitGroup(lv_workerType, gv_p01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32))), 0));
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
if ((((OrderGetAbilityCommand(UnitOrder(UnitGroupLoopCurrent(), 0)) == lv_gatherAbil) && (UnitGetType(OrderGetTargetUnit(UnitOrder(UnitGroupLoopCurrent(), 0))) == lv_geyserType)) || ((OrderGetAbilityCommand(UnitOrder(UnitGroupLoopCurrent(), 0)) == lv_gatherReturnAbil) && (UnitHasBehavior2(UnitGroupLoopCurrent(), lv_carryBehavior) == true)))) {
}
else {
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:3679
}
if (!((((UnitGetType(EventUnit()) == "SCV") && (UnitGetType(OrderGetTargetUnit(EventUnitOrder())) == "SCV") && ((OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("SCVHarvest", 0)) || (OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("SCVHarvest", 1)))) || ((UnitGetType(EventUnit()) == "Drone") && (UnitGetType(OrderGetTargetUnit(EventUnitOrder())) == "Drone") && ((OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("DroneHarvest", 0)) || (OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("DroneHarvest", 1)))) || ((UnitGetType(EventUnit()) == "Probe") && (UnitGetType(OrderGetTargetUnit(EventUnitOrder())) == "Probe") && ((OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("ProbeHarvest", 0)) || (OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("ProbeHarvest", 1))))))) {
return false;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:3679
}
if (!((((UnitGetType(EventUnit()) == "SCV") && (UnitGetType(OrderGetTargetUnit(EventUnitOrder())) == "SCV") && ((OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("SCVHarvest", 0)) || (OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("SCVHarvest", 1)))) || ((UnitGetType(EventUnit()) == "Drone") && (UnitGetType(OrderGetTargetUnit(EventUnitOrder())) == "Drone") && ((OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("DroneHarvest", 0)) || (OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("DroneHarvest", 1)))) || ((UnitGetType(EventUnit()) == "Probe") && (UnitGetType(OrderGetTargetUnit(EventUnitOrder())) == "Probe") && ((OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("ProbeHarvest", 0)) || (OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("ProbeHarvest", 1))))))) {
return false;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:3679
}
if (!((((UnitGetType(EventUnit()) == "SCV") && (UnitGetType(OrderGetTargetUnit(EventUnitOrder())) == "SCV") && ((OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("SCVHarvest", 0)) || (OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("SCVHarvest", 1)))) || ((UnitGetType(EventUnit()) == "Drone") && (UnitGetType(OrderGetTargetUnit(EventUnitOrder())) == "Drone") && ((OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("DroneHarvest", 0)) || (OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("DroneHarvest", 1)))) || ((UnitGetType(EventUnit()) == "Probe") && (UnitGetType(OrderGetTargetUnit(EventUnitOrder())) == "Probe") && ((OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("ProbeHarvest", 0)) || (OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("ProbeHarvest", 1))))))) {
return false;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:3679
}
if (!((((UnitGetType(EventUnit()) == "SCV") && (UnitGetType(OrderGetTargetUnit(EventUnitOrder())) == "SCV") && ((OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("SCVHarvest", 0)) || (OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("SCVHarvest", 1)))) || ((UnitGetType(EventUnit()) == "Drone") && (UnitGetType(OrderGetTargetUnit(EventUnitOrder())) == "Drone") && ((OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("DroneHarvest", 0)) || (OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("DroneHarvest", 1)))) || ((UnitGetType(EventUnit()) == "Probe") && (UnitGetType(OrderGetTargetUnit(EventUnitOrder())) == "Probe") && ((OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("ProbeHarvest", 0)) || (OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("ProbeHarvest", 1))))))) {
return false;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:3679
}
if (!((((UnitGetType(EventUnit()) == "SCV") && (UnitGetType(OrderGetTargetUnit(EventUnitOrder())) == "SCV") && ((OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("SCVHarvest", 0)) || (OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("SCVHarvest", 1)))) || ((UnitGetType(EventUnit()) == "Drone") && (UnitGetType(OrderGetTargetUnit(EventUnitOrder())) == "Drone") && ((OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("DroneHarvest", 0)) || (OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("DroneHarvest", 1)))) || ((UnitGetType(EventUnit()) == "Probe") && (UnitGetType(OrderGetTargetUnit(EventUnitOrder())) == "Probe") && ((OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("ProbeHarvest", 0)) || (OrderGetAbilityCommand(UnitOrder(OrderGetTargetUnit(EventUnitOrder()), 0)) == AbilityCommand("ProbeHarvest", 1))))))) {
return false;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur02.sc2map — MapScript.galaxy:3332
auto220BF287_var = UnitGroupUnitFromEnd(auto220BF287_g, auto220BF287_u);
if (auto220BF287_var == null) { break; }
if ((!((((OrderGetAbilityCommand(UnitOrder(auto220BF287_var, 0)) == AbilityCommand("ProbeHarvest", 0)) && (UnitGetType(OrderGetTargetUnit(UnitOrder(auto220BF287_var, 0))) == "Assimilator")) || ((OrderGetAbilityCommand(UnitOrder(auto220BF287_var, 0)) == AbilityCommand("ProbeHarvest", 1)) && (UnitHasBehavior2(auto220BF287_var, "CarryHarvestableVespeneGeyserGasProtoss") == true)))))) {
UnitGroupAdd(lv_validProbes, auto220BF287_var);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur02.sc2map — MapScript.galaxy:3453
auto70400E0A_var = UnitGroupUnitFromEnd(auto70400E0A_g, auto70400E0A_u);
if (auto70400E0A_var == null) { break; }
if ((((OrderGetAbilityCommand(UnitOrder(auto70400E0A_var, 0)) == AbilityCommand("ProbeHarvest", 0)) && (UnitGetType(OrderGetTargetUnit(UnitOrder(auto70400E0A_var, 0))) == "Assimilator")) || ((OrderGetAbilityCommand(UnitOrder(auto70400E0A_var, 0)) == AbilityCommand("ProbeHarvest", 1)) && (UnitHasBehavior2(auto70400E0A_var, "CarryHarvestableVespeneGeyserGasProtoss") == true)))) {
lv_probesOnGas += 1;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur02.sc2map — MapScript.galaxy:3811
auto4D4BD4E5_var = UnitGroupUnitFromEnd(auto4D4BD4E5_g, auto4D4BD4E5_u);
if (auto4D4BD4E5_var == null) { break; }
if ((((OrderGetAbilityCommand(UnitOrder(auto4D4BD4E5_var, 0)) == AbilityCommand("ProbeHarvest", 0)) && (UnitGetType(OrderGetTargetUnit(UnitOrder(auto4D4BD4E5_var, 0))) == "Assimilator")) || ((OrderGetAbilityCommand(UnitOrder(auto4D4BD4E5_var, 0)) == AbilityCommand("ProbeHarvest", 1)) && (UnitHasBehavior2(auto4D4BD4E5_var, "CarryHarvestableVespeneGeyserGasProtoss") == true)))) {
lv_probesOnGas += 1;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue01.sc2map — MapScript.galaxy:6475
libNtve_gf_MakeUnitLookAtUnit(gv_narud, "SlowStanding", EventUnitTargetUnit(), "Ref_Center");
while ((UnitIsAlive(EventUnitTargetUnit()) == true) && (EventUnitTargetUnit() == OrderGetTargetUnit(UnitOrder(gv_narud, 0)))) {
if ((AngleBetweenPoints(EventUnitTargetPoint(), UnitGetPosition(EventUnit())) >= lv_clampLeft) && (AngleBetweenPoints(EventUnitTargetPoint(), UnitGetPosition(EventUnit())) <= lv_clamRight)) {
if ((lv_lookingAtTarget == false)) {
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:2324
if (autoD777BD30_var == null) { break; }
lv_currentOrder = UnitOrder(autoD777BD30_var, 0);
if ((((OrderGetAbilityCommand(lv_currentOrder) == AbilityCommand("ProbeHarvest", 0)) && ((UnitGetType(OrderGetTargetUnit(lv_currentOrder)) == "MineralField") || (UnitGetType(OrderGetTargetUnit(lv_currentOrder)) == "RichMineralField"))) || ((OrderGetAbilityCommand(lv_currentOrder) == AbilityCommand("ProbeHarvest", 1)) && ((UnitHasBehavior(autoD777BD30_var, "CarryMineralFieldMinerals") == true) || (UnitHasBehavior(autoD777BD30_var, "CarryHighYieldMineralFieldMinerals") == true))))) {
lv_probeCount += 1;
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:2324
if (autoD777BD30_var == null) { break; }
lv_currentOrder = UnitOrder(autoD777BD30_var, 0);
if ((((OrderGetAbilityCommand(lv_currentOrder) == AbilityCommand("ProbeHarvest", 0)) && ((UnitGetType(OrderGetTargetUnit(lv_currentOrder)) == "MineralField") || (UnitGetType(OrderGetTargetUnit(lv_currentOrder)) == "RichMineralField"))) || ((OrderGetAbilityCommand(lv_currentOrder) == AbilityCommand("ProbeHarvest", 1)) && ((UnitHasBehavior(autoD777BD30_var, "CarryMineralFieldMinerals") == true) || (UnitHasBehavior(autoD777BD30_var, "CarryHighYieldMineralFieldMinerals") == true))))) {
lv_probeCount += 1;
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:2395
if (auto7D3CC923_var == null) { break; }
lv_currentOrder = UnitOrder(auto7D3CC923_var, 0);
if ((((OrderGetAbilityCommand(lv_currentOrder) == AbilityCommand("ProbeHarvest", 0)) && (OrderGetTargetUnit(lv_currentOrder) == lp_assimilator)) || ((OrderGetAbilityCommand(lv_currentOrder) == AbilityCommand("ProbeHarvest", 1)) && (UnitHasBehavior(auto7D3CC923_var, "CarryHarvestableVespeneGeyserGasProtoss") == true)))) {
lv_probeCount += 1;
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:2406
if (autoB8EF7717_var == null) { break; }
lv_currentOrder = UnitOrder(autoB8EF7717_var, 0);
if ((OrderGetAbilityCommand(lv_currentOrder) == AbilityCommand("DroneHarvest", 0)) && (OrderGetTargetUnit(lv_currentOrder) == lp_assimilator)) {
lv_probeCount += 1;
}
mods/balancemulti.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:77
// Variable Initialization
lv_caster = EventUnit();
lv_target = OrderGetTargetUnit(EventUnitOrder());
lv_order = EventUnitOrder();
mods/balancemulti.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:122
// Variable Initialization
lv_caster = EventUnit();
lv_target = OrderGetTargetUnit(EventUnitOrder());
lv_order = EventUnitOrder();
mods/balancemulti.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:258
// Variable Initialization
lv_caster = EventUnit();
lv_target = OrderGetTargetUnit(EventUnitOrder());
lv_order = EventUnitOrder();
mods/balancemultilanmethodcleanedup.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:77
// Variable Initialization
lv_caster = EventUnit();
lv_target = OrderGetTargetUnit(EventUnitOrder());
lv_order = EventUnitOrder();
mods/balancemultilanmethodcleanedup.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:122
// Variable Initialization
lv_caster = EventUnit();
lv_target = OrderGetTargetUnit(EventUnitOrder());
lv_order = EventUnitOrder();
mods/balancemultilanmethodcleanedup.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:258
// Variable Initialization
lv_caster = EventUnit();
lv_target = OrderGetTargetUnit(EventUnitOrder());
lv_order = EventUnitOrder();
mods/balancemultislowwarpprism.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:77
// Variable Initialization
lv_caster = EventUnit();
lv_target = OrderGetTargetUnit(EventUnitOrder());
lv_order = EventUnitOrder();
mods/balancemultislowwarpprism.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:122
// Variable Initialization
lv_caster = EventUnit();
lv_target = OrderGetTargetUnit(EventUnitOrder());
lv_order = EventUnitOrder();
mods/balancemultislowwarpprism.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:258
// Variable Initialization
lv_caster = EventUnit();
lv_target = OrderGetTargetUnit(EventUnitOrder());
lv_order = EventUnitOrder();
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactProtAI.galaxy:843
ord = AICreateOrder(player, c_AB_ArchonWarp, 1);
targetGroup = UnitGroupSearch(c_PU_HighTemplar, player, UnitGetPosition(aiUnit), 5.0, UnitFilter((1 << c_targetFilterSelf), 0, 0, 0), c_noMaxCount);
targetUnit = OrderGetTargetUnit( AIUnitGroupGetValidOrder(targetGroup, ord, aiUnit, c_forwards) );
if (targetUnit == null) {
return false;
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactProtAI.galaxy:1070
if ((curOrder != null) && (OrderGetAbilityCommand(curOrder) == AbilityCommand(chrono, 0)) && (OrderGetTargetType(curOrder) == c_orderTargetUnit)) {
// should only happen in void with the new chrono boost
curTarget = OrderGetTargetUnit(curOrder);
loop = UnitGroupCount(prodGroup, c_unitCountAll);
while (loop > 0) {
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactProtAI.galaxy:1698
return null; // doing something other than attacking
}
targetUnit = OrderGetTargetUnit(curOrder);
if ((targetUnit == null) || (UnitTypeTestAttribute(UnitGetType(targetUnit), c_unitAttributeArmored) == false)) {
return null; // damage boost is only useful versus armored
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactTerrAI.galaxy:1624
curOrder = UnitOrder(aiUnit, 0);
if ((curOrder != null) && (OrderGetAbilityCommand(curOrder) == AbilityCommand("attack", 0)) && (OrderGetTargetType(curOrder) == c_orderTargetUnit)) {
curTarget = OrderGetTargetUnit(curOrder);
}
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactZergAI.galaxy:396
return null; // doing something other than attacking
}
targetUnit = OrderGetTargetUnit(curOrder);
if (targetUnit == null) {
// only want to charge units we're attacking anyway (since other wise
mods/heroesbrawlmods/arenamodemods/templearena.stormmod — base.stormdata/LibAMCT.galaxy:2210
}
lv_currentOrderTarget = OrderGetTargetUnit(lv_currentOrder);
if ((UnitGetOwner(libAMCT_gv_aRMSkyTemple[lv_templeIndex].lv_temple) != libCore_gv_cOMPUTER_Neutral)) {
lv_testTargets = UnitGroupFilterAlliance(lv_validTargets, UnitGetOwner(libAMCT_gv_aRMSkyTemple[lv_templeIndex].lv_beacon), c_unitAllianceAlly, 0);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/AILib.galaxy:648
// Implementation
lv_creepUnit = libAIAI_gv_defenderAI[lp_defenderAIIndex].lv_defenderUnits[lp_creep];
lv_currentOrderTarget = OrderGetTargetUnit(UnitOrder(lv_creepUnit, 0));
libAIAI_gv_defenderAICreepNeedsNewOrder = true;
if ((UnitWeaponPeriodRemaining(lv_creepUnit, 1) > 2.0)) {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:1406
}
else {
if ((OrderGetTargetUnit(UnitOrder(lp_ultraliskUnit, 0)) != null)) {
if ((OrderGetTargetUnit(UnitOrder(lp_ultraliskUnit, 0)) != libGDHL_gv_heroKerriganUltraliskCurrentAttackTargetUnit[EventPlayerEffectUsedUnitOwner(c_effectPlayerCaster)])) {
libGDHL_gv_heroKerriganUltraliskCurrentAttackTargetUnit[EventPlayerEffectUsedUnitOwner(c_effectPlayerCaster)] = OrderGetTargetUnit(UnitOrder(lp_ultraliskUnit, 0));
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:1407
else {
if ((OrderGetTargetUnit(UnitOrder(lp_ultraliskUnit, 0)) != null)) {
if ((OrderGetTargetUnit(UnitOrder(lp_ultraliskUnit, 0)) != libGDHL_gv_heroKerriganUltraliskCurrentAttackTargetUnit[EventPlayerEffectUsedUnitOwner(c_effectPlayerCaster)])) {
libGDHL_gv_heroKerriganUltraliskCurrentAttackTargetUnit[EventPlayerEffectUsedUnitOwner(c_effectPlayerCaster)] = OrderGetTargetUnit(UnitOrder(lp_ultraliskUnit, 0));
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:1408
if ((OrderGetTargetUnit(UnitOrder(lp_ultraliskUnit, 0)) != null)) {
if ((OrderGetTargetUnit(UnitOrder(lp_ultraliskUnit, 0)) != libGDHL_gv_heroKerriganUltraliskCurrentAttackTargetUnit[EventPlayerEffectUsedUnitOwner(c_effectPlayerCaster)])) {
libGDHL_gv_heroKerriganUltraliskCurrentAttackTargetUnit[EventPlayerEffectUsedUnitOwner(c_effectPlayerCaster)] = OrderGetTargetUnit(UnitOrder(lp_ultraliskUnit, 0));
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:3062
}
if ((lv_currentState != libGDHL_ge_MishaState_Fighting) && ((libGDHL_gv_commandMishaTargetUnit[lv_player] != null) || ((OrderGetAbilityCommand(UnitOrder(lv_misha, 0)) == AbilityCommand("attack", 0)) && (UnitIsValid(OrderGetTargetUnit(UnitOrder(lv_rexxar, 0))) == true) && (lv_autoAquired != true)))) {
lv_currentState = libGDHL_ge_MishaState_Fighting;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:3122
else if (auto3742AA88_val == libGDHL_ge_MishaState_Fighting) {
if ((UnitIsValid(libGDHL_gv_commandMishaTargetUnit[lv_player]) == true) && (UnitTestState(libGDHL_gv_commandMishaTargetUnit[lv_player], c_unitStateTargetable) == true) && ((UnitFilterMatch(libGDHL_gv_commandMishaTargetUnit[lv_player], lv_player, UnitFilter((1 << c_targetFilterVisible), 0, (1 << c_targetFilterPlayer) | (1 << c_targetFilterAlly) | (1 << c_targetFilterStructure), (1 << (c_targetFilterStasis - 32)) | (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)))) == true) || (UnitFilterMatch(libGDHL_gv_commandMishaTargetUnit[lv_player], lv_player, UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterPlayer) | (1 << c_targetFilterAlly) | (1 << c_targetFilterImmuneToSkillshots), (1 << (c_targetFilterStasis - 32)) | (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterInvulnerable - 32)))) == true))) {
if ((OrderGetTargetUnit(UnitOrder(lv_misha, 0)) != libGDHL_gv_commandMishaTargetUnit[lv_player])) {
UnitIssueOrder(lv_misha, OrderTargetingUnit(AbilityCommand("attack", 0), libGDHL_gv_commandMishaTargetUnit[lv_player]), c_orderQueueReplace);
UnitCreateEffectUnit(lv_rexxar, "RexxarMishaTargetingPersistent", libGDHL_gv_commandMishaTargetUnit[lv_player]);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:3133
}
if ((OrderGetAbilityCommand(UnitOrder(lv_rexxar, 0)) == AbilityCommand("attack", 0)) && (UnitOrderIsAcquired(lv_rexxar, 0) == false) && (UnitIsValid(OrderGetTargetUnit(UnitOrder(lv_rexxar, 0))) == true) && (UnitFilterMatch(OrderGetTargetUnit(UnitOrder(lv_rexxar, 0)), lv_player, UnitFilter((1 << c_targetFilterVisible), 0, (1 << c_targetFilterPlayer) | (1 << c_targetFilterAlly), (1 << (c_targetFilterStasis - 32)) | (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)))) == true) && (OrderGetTargetUnit(UnitOrder(lv_rexxar, 0)) != OrderGetTargetUnit(UnitOrder(lv_misha, 0))) && (libGDHL_gv_commandMishaTargetUnit[lv_player] == null)) {
UnitCreateEffectUnit(lv_rexxar, "RexxarMishaCopyOrders", lv_misha);
UnitCreateEffectUnit(lv_rexxar, "RexxarMishaTargetingPersistent", OrderGetTargetUnit(UnitOrder(lv_rexxar, 0)));
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:3133
}
if ((OrderGetAbilityCommand(UnitOrder(lv_rexxar, 0)) == AbilityCommand("attack", 0)) && (UnitOrderIsAcquired(lv_rexxar, 0) == false) && (UnitIsValid(OrderGetTargetUnit(UnitOrder(lv_rexxar, 0))) == true) && (UnitFilterMatch(OrderGetTargetUnit(UnitOrder(lv_rexxar, 0)), lv_player, UnitFilter((1 << c_targetFilterVisible), 0, (1 << c_targetFilterPlayer) | (1 << c_targetFilterAlly), (1 << (c_targetFilterStasis - 32)) | (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)))) == true) && (OrderGetTargetUnit(UnitOrder(lv_rexxar, 0)) != OrderGetTargetUnit(UnitOrder(lv_misha, 0))) && (libGDHL_gv_commandMishaTargetUnit[lv_player] == null)) {
UnitCreateEffectUnit(lv_rexxar, "RexxarMishaCopyOrders", lv_misha);
UnitCreateEffectUnit(lv_rexxar, "RexxarMishaTargetingPersistent", OrderGetTargetUnit(UnitOrder(lv_rexxar, 0)));
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:3133
}
if ((OrderGetAbilityCommand(UnitOrder(lv_rexxar, 0)) == AbilityCommand("attack", 0)) && (UnitOrderIsAcquired(lv_rexxar, 0) == false) && (UnitIsValid(OrderGetTargetUnit(UnitOrder(lv_rexxar, 0))) == true) && (UnitFilterMatch(OrderGetTargetUnit(UnitOrder(lv_rexxar, 0)), lv_player, UnitFilter((1 << c_targetFilterVisible), 0, (1 << c_targetFilterPlayer) | (1 << c_targetFilterAlly), (1 << (c_targetFilterStasis - 32)) | (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)))) == true) && (OrderGetTargetUnit(UnitOrder(lv_rexxar, 0)) != OrderGetTargetUnit(UnitOrder(lv_misha, 0))) && (libGDHL_gv_commandMishaTargetUnit[lv_player] == null)) {
UnitCreateEffectUnit(lv_rexxar, "RexxarMishaCopyOrders", lv_misha);
UnitCreateEffectUnit(lv_rexxar, "RexxarMishaTargetingPersistent", OrderGetTargetUnit(UnitOrder(lv_rexxar, 0)));
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:3133
}
if ((OrderGetAbilityCommand(UnitOrder(lv_rexxar, 0)) == AbilityCommand("attack", 0)) && (UnitOrderIsAcquired(lv_rexxar, 0) == false) && (UnitIsValid(OrderGetTargetUnit(UnitOrder(lv_rexxar, 0))) == true) && (UnitFilterMatch(OrderGetTargetUnit(UnitOrder(lv_rexxar, 0)), lv_player, UnitFilter((1 << c_targetFilterVisible), 0, (1 << c_targetFilterPlayer) | (1 << c_targetFilterAlly), (1 << (c_targetFilterStasis - 32)) | (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)))) == true) && (OrderGetTargetUnit(UnitOrder(lv_rexxar, 0)) != OrderGetTargetUnit(UnitOrder(lv_misha, 0))) && (libGDHL_gv_commandMishaTargetUnit[lv_player] == null)) {
UnitCreateEffectUnit(lv_rexxar, "RexxarMishaCopyOrders", lv_misha);
UnitCreateEffectUnit(lv_rexxar, "RexxarMishaTargetingPersistent", OrderGetTargetUnit(UnitOrder(lv_rexxar, 0)));
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:3135
if ((OrderGetAbilityCommand(UnitOrder(lv_rexxar, 0)) == AbilityCommand("attack", 0)) && (UnitOrderIsAcquired(lv_rexxar, 0) == false) && (UnitIsValid(OrderGetTargetUnit(UnitOrder(lv_rexxar, 0))) == true) && (UnitFilterMatch(OrderGetTargetUnit(UnitOrder(lv_rexxar, 0)), lv_player, UnitFilter((1 << c_targetFilterVisible), 0, (1 << c_targetFilterPlayer) | (1 << c_targetFilterAlly), (1 << (c_targetFilterStasis - 32)) | (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)))) == true) && (OrderGetTargetUnit(UnitOrder(lv_rexxar, 0)) != OrderGetTargetUnit(UnitOrder(lv_misha, 0))) && (libGDHL_gv_commandMishaTargetUnit[lv_player] == null)) {
UnitCreateEffectUnit(lv_rexxar, "RexxarMishaCopyOrders", lv_misha);
UnitCreateEffectUnit(lv_rexxar, "RexxarMishaTargetingPersistent", OrderGetTargetUnit(UnitOrder(lv_rexxar, 0)));
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:14453
while ((UnitHasBehavior2(lv_tauntedUnit, lv_tauntBehavior) == true)) {
if (((OrderGetTargetType(UnitOrder(lv_tauntedUnit, 0)) != c_orderTargetUnit) || (OrderGetTargetUnit(UnitOrder(lv_tauntedUnit, 0)) != lv_casterUnit))) {
UnitCreateEffectUnit(lv_casterUnit, "StormGenericTauntClearTargetOrders", lv_tauntedUnit);
if ((lv_tauntedUnitHasBasicAttackAbility == true)) {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/StartingExperienceLib.galaxy:1572
// Implementation
while ((UnitIsAlive(lp_uther) == true) && (UnitIsAlive(lp_valla) == true) && (UnitIsAlive(lp_boss) == true)) {
lv_currentTargetOfBoss = OrderGetTargetUnit(UnitOrder(lp_boss, 0));
if ((UnitIsValid(lv_currentTargetOfBoss) == true)) {
if ((UnitGetPropertyFixed(lv_currentTargetOfBoss, c_unitPropLifePercent, c_unitPropCurrent) > 80.0) && (UnitGetPropertyFixed(lp_uther, c_unitPropEnergyPercent, c_unitPropCurrent) > 50.0)) {
mods/heroesmapmods/battlegroundmapmods/skytemple.stormmod — base.stormdata/LibMLCP.galaxy:2709
}
lv_currentOrderTarget = OrderGetTargetUnit(lv_currentOrder);
if ((UnitGetOwner(libMLCP_gv_mMSkyTemples[lv_templeIndex].lv_temple) != libCore_gv_cOMPUTER_Neutral)) {
lv_testTargets = UnitGroupFilterAlliance(lv_validTargets, UnitGetOwner(libMLCP_gv_mMSkyTemples[lv_templeIndex].lv_beacon), c_unitAllianceAlly, 0);
mods/novastoryassets.sc2mod — base3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:2744
}
if (!((OrderGetTargetUnit(UnitOrder(lv_engagingUnit, 0)) != gv_s1_TripWire_Critter))) {
return false;
}
mods/novastoryassets.sc2mod — base3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:2755
TriggerEnable(TriggerGetCurrent(), false);
if ((OrderGetTargetUnit(UnitOrder(lv_engagingUnit, 0)) != gv_dominatedBuddyUnit)) {
lv_engagedUnitIsNova = true;
}
mods/novastoryassets.sc2mod — base3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:2776
gv_engagingTargetTransmissionCycleGhost = gv_engagingTargetTransmissionCycleGhost + 1;
}
if ((OrderGetTargetUnit(UnitOrder(lv_engagingUnit, 0)) != gv_dominatedBuddyUnit)) {
auto64AD0E97_val = gv_engagingTargetTransmissionCycleGhost;
if (auto64AD0E97_val == 1) {
mods/novastoryassets.sc2mod — base3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:2804
gv_engagingTargetTransmissionCycleGhost = gv_engagingTargetTransmissionCycleGhost + 1;
}
if ((OrderGetTargetUnit(UnitOrder(lv_engagingUnit, 0)) != gv_dominatedBuddyUnit)) {
auto1287CD41_val = gv_engagingTargetTransmissionCycleGhost;
if (auto1287CD41_val == 1) {
mods/novastoryassets.sc2mod — base3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:2835
gv_engagingTargetTransmissionCycleTrooper = gv_engagingTargetTransmissionCycleTrooper + 1;
}
if ((OrderGetTargetUnit(UnitOrder(lv_engagingUnit, 0)) != gv_dominatedBuddyUnit)) {
auto404312A9_val = gv_engagingTargetTransmissionCycleTrooper;
if (auto404312A9_val == 1) {
mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova07.sc2map — MapScript.galaxy:2744
}
if (!((OrderGetTargetUnit(UnitOrder(lv_engagingUnit, 0)) != gv_s1_TripWire_Critter))) {
return false;
}
mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova07.sc2map — MapScript.galaxy:2755
TriggerEnable(TriggerGetCurrent(), false);
if ((OrderGetTargetUnit(UnitOrder(lv_engagingUnit, 0)) != gv_dominatedBuddyUnit)) {
lv_engagedUnitIsNova = true;
}
mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova07.sc2map — MapScript.galaxy:2776
gv_engagingTargetTransmissionCycleGhost = gv_engagingTargetTransmissionCycleGhost + 1;
}
if ((OrderGetTargetUnit(UnitOrder(lv_engagingUnit, 0)) != gv_dominatedBuddyUnit)) {
auto64AD0E97_val = gv_engagingTargetTransmissionCycleGhost;
if (auto64AD0E97_val == 1) {
mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova07.sc2map — MapScript.galaxy:2804
gv_engagingTargetTransmissionCycleGhost = gv_engagingTargetTransmissionCycleGhost + 1;
}
if ((OrderGetTargetUnit(UnitOrder(lv_engagingUnit, 0)) != gv_dominatedBuddyUnit)) {
auto1287CD41_val = gv_engagingTargetTransmissionCycleGhost;
if (auto1287CD41_val == 1) {
mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova07.sc2map — MapScript.galaxy:2835
gv_engagingTargetTransmissionCycleTrooper = gv_engagingTargetTransmissionCycleTrooper + 1;
}
if ((OrderGetTargetUnit(UnitOrder(lv_engagingUnit, 0)) != gv_dominatedBuddyUnit)) {
auto404312A9_val = gv_engagingTargetTransmissionCycleTrooper;
if (auto404312A9_val == 1) {
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:17201
// Variable Initialization
lv_drone = EventUnit();
lv_gasStation = OrderGetTargetUnit(EventUnitOrder());
// Conditions
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:21487
lv_queue = OrderGetFlag(lv_order, c_cmdQueued);
lv_laserDrill = libCOMI_gv_cM_LaserDrillUnit[OrderGetPlayer(lv_order)];
lv_orderAttack = OrderTargetingUnit(AbilityCommand("attack", 0), OrderGetTargetUnit(lv_order));
// Actions
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:24085
lv_orderDummy = EventUnitOrder();
lv_sCV = EventUnit();
lv_target = OrderGetTargetUnit(lv_orderDummy);
lv_isUserOrder = OrderGetFlag(lv_orderDummy, c_cmdUser);
lv_isSetAutoCastStateOrder = OrderGetFlag(lv_orderDummy, c_cmdSetAutoCast);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:24161
lv_orderDummy = UnitOrder(EventUnit(), 0);
lv_sCV = EventUnit();
lv_target = OrderGetTargetUnit(lv_orderDummy);
lv_isUserOrder = OrderGetFlag(lv_orderDummy, c_cmdUser);
lv_isQueuedOrder = OrderGetFlag(lv_orderDummy, c_cmdQueued);
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:414
enemyOrd = UnitOrder(unitToCheck, 0);
if (AIIsAttackOrder(enemyOrd) && OrderGetTargetUnit(enemyOrd) == aiUnit) {
numActualThreats = numActualThreats + 1;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:441
enemyOrd = UnitOrder(unitToCheck, 0);
if (AIIsAttackOrder(enemyOrd) && OrderGetTargetUnit(enemyOrd) == aiUnit) {
numActualThreatsInBarrage = numActualThreatsInBarrage + 1;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:1200
enemyOrd = UnitOrder(unitToCheck, 0);
if (AIIsAttackOrder(enemyOrd) && OrderGetTargetUnit(enemyOrd) == aiUnit) {
numActualThreats = numActualThreats + 1;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:1227
enemyOrd = UnitOrder(unitToCheck, 0);
if (AIIsAttackOrder(enemyOrd) && OrderGetTargetUnit(enemyOrd) == aiUnit) {
numActualThreatsInBarrage = numActualThreatsInBarrage + 1;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:1482
enemyOrd = UnitOrder(unitToCheck, 0);
if (AIIsAttackOrder(enemyOrd) && OrderGetTargetUnit(enemyOrd) == aiUnit) {
numActualThreats = numActualThreats + 1;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:1509
enemyOrd = UnitOrder(unitToCheck, 0);
if (AIIsAttackOrder(enemyOrd) && OrderGetTargetUnit(enemyOrd) == aiUnit) {
numActualThreatsInBarrage = numActualThreatsInBarrage + 1;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactProtAI.galaxy:820
ord = AICreateOrder(player, c_AB_ArchonWarp, 1);
targetGroup = UnitGroupSearch(c_PU_HighTemplar, player, UnitGetPosition(aiUnit), 5.0, UnitFilter((1 << c_targetFilterSelf), 0, 0, 0), c_noMaxCount);
targetUnit = OrderGetTargetUnit( AIUnitGroupGetValidOrder(targetGroup, ord, aiUnit, c_forwards) );
if (targetUnit == null) {
return false;