# Damaging Unit
Grammar — Damaging unit
Flags —Native
|Function
Returns the damaging unit.
Returns — unit
native unit EventUnitDamageSourceUnit();
# Supported triggers
- Unit Takes Damage — TriggerAddEventUnitDamaged
- Unit Absorbs Damage — TriggerAddEventUnitDamageAbsorbed
# Related
Category: Unit / Combat
- Get Unit Damage Dealt Time —
fixed
— UnitGetDamageDealtTime - Get Unit Damage Taken Time —
fixed
— UnitGetDamageTakenTime - Weapon Used In Attack —
string
<gamelink::Weapon> — EventUnitGetWeapon - Item Used In Attack —
unit
— EventUnitGetItem - Item Type Used In Attack —
string
<gamelink::Item> — EventUnitGetItemType - Unit Dies —
void
— TriggerAddEventUnitDied - Killing Unit —
unit
— libNtve_gf_KillingUnit - Killing Player —
int
— libNtve_gf_KillingPlayer - Triggering Death Type Check —
bool
— EventUnitDamageDeathCheck - Unit Is Being Removed —
void
— TriggerAddEventUnitRemoved - Unit Starts Attacking (Deprecated) —
void
— TriggerAddEventUnitStartedAttack - Unit Starts Attacking —
void
— TriggerAddEventUnitStartedAttack2 - Unit Is Attacked (Deprecated) —
void
— TriggerAddEventUnitAttacked - Unit Is Attacked —
void
— TriggerAddEventUnitAttacked2 - Attacking Unit —
unit
— EventUnitTarget - Unit Absorbs Damage —
void
— TriggerAddEventUnitDamageAbsorbed - Unit Takes Damage —
void
— TriggerAddEventUnitDamaged - Damaging Unit —
unit
— EventUnitDamageSourceUnit - Damaging Player —
int
— EventUnitDamageSourcePlayer - Damaging Effect —
string
<gamelink::Effect> — EventUnitDamageEffect - Triggering Damage Taken —
fixed
— EventUnitDamageAmount - Triggering Damage Attempted —
fixed
— EventUnitDamageAttempted - Triggering Damage Attempted Vitals —
fixed
— EventUnitDamageAttemptedVitals - Triggering Damage Absorbed —
fixed
— EventUnitDamageAbsorbed - Triggering Damage Behavior Shield —
fixed
— EventUnitDamageBehaviorShield - Triggering Vitals Leeched —
fixed
— EventUnitDamageVitalsLeeched - Triggering Unit Kill XP —
int
— EventUnitDamageKillXP - Damage Source Position —
point
— EventUnitDamageSourcePoint - Unit is Healed —
void
— TriggerAddEventUnitHealed - Healing Unit —
unit
— EventUnitHealLaunchUnit - Healing Player —
int
— EventUnitHealLaunchPlayer - Triggering Heal Vital Type —
int
<preset::UnitVitalType> — EventUnitHealVital - Triggering Heal Given —
fixed
— EventUnitHealAmount - Healing Effect —
string
<gamelink::Effect> — EventUnitHealEffect - Unit Spends Vital —
void
— TriggerAddEventUnitSpendVital - Triggering Spent Vital Type —
int
<preset::UnitVitalType> — EventUnitSpentVitalVital - Triggering Vital Spent —
fixed
— EventUnitSpentVitalAmount - Unit Acquires Target —
void
— TriggerAddEventUnitAcquiredTarget - Acquired Target —
unit
— libNtve_gf_AcquiredTarget - Unit Is Revived —
void
— TriggerAddEventUnitRevive - Triggering Victim Unit —
unit
— EventUnitVictimUnit - Triggering Item Used —
unit
— EventUnitItemUsed - Triggering Effect Used —
string
<gamelink::Effect> — EventUnitEffectUsed
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:2557
UnitSetCustomValue(lv_scientist, 0, 1.0);
if ((lv_scientist == EventUnit())) {
lv_angle = AngleBetweenPoints(UnitGetPosition(EventUnitDamageSourceUnit()), UnitGetPosition(lv_scientist));
}
else {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh01.sc2map/MapScript.galaxy:1001
}
if (!((UnitMoverExists(EventUnitDamageSourceUnit(), "Fly") == false))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:1365
}
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) == gv_p1_USER))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:1408
}
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) == gv_p1_USER))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:1588
}
if (!((EventUnitDamageSourceUnit() == gv_tosh))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:2309
}
if (!((EventUnitDamageSourceUnit() == gv_tosh))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:1602
}
if (!((EventUnitDamageSourceUnit() != gv_nova))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:1643
}
if (!((UnitGroupHasUnit(gv_p1MiTuGuards, EventUnitDamageSourceUnit()) == true))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:1860
}
if (!((UnitTestState(EventUnitDamageSourceUnit(), c_unitStateCloaked) == true))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:2558
}
if (!((UnitTestPlane(EventUnitDamageSourceUnit(), c_planeGround) == true))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:3844
}
if (!((UnitTestPlane(EventUnitDamageSourceUnit(), c_planeAir) == true))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:3848
}
if (!((libNtve_gf_UnitIsVisibleToPlayer(EventUnitDamageSourceUnit(), gv_pLAYER02_TOSH) == true))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:3888
}
if (!((UnitTestPlane(EventUnitDamageSourceUnit(), c_planeAir) == true))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:3892
}
if (!((libNtve_gf_UnitIsVisibleToPlayer(EventUnitDamageSourceUnit(), gv_pLAYER02_TOSH) == true))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:3928
// Conditions
if (testConds) {
if (!((UnitGetType(EventUnitDamageSourceUnit()) == "Banshee"))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:3969
// Conditions
if (testConds) {
if (!((UnitGetType(EventUnitDamageSourceUnit()) == "VikingFighter"))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:2036
}
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) != gv_p1_USER))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:2080
}
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) == gv_p1_USER))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus05.sc2map/MapScript.galaxy:1957
TriggerEnable(TriggerGetCurrent(), false);
UnitGroupIssueOrder(gv_gROUPRipFieldGeneratorResponse01, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(EventUnitDamageSourceUnit())), c_orderQueueReplace);
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus05.sc2map/MapScript.galaxy:1985
TriggerEnable(TriggerGetCurrent(), false);
UnitGroupIssueOrder(gv_gROUPRipFieldGeneratorResponse02, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(EventUnitDamageSourceUnit())), c_orderQueueReplace);
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus05.sc2map/MapScript.galaxy:2013
TriggerEnable(TriggerGetCurrent(), false);
UnitGroupIssueOrder(gv_gROUPVaultResponse, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(EventUnitDamageSourceUnit())), c_orderQueueReplace);
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:1726
// Conditions
if (testConds) {
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) == gv_p1_USER))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:1872
// Conditions
if (testConds) {
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) == gv_p1_USER))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:2025
// Conditions
if (testConds) {
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) == gv_p1_USER))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:2171
// Conditions
if (testConds) {
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) == gv_p1_USER))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:2391
// Conditions
if (testConds) {
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) == gv_p1_USER))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:2575
// Conditions
if (testConds) {
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) == gv_p1_USER))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:3804
// Conditions
if (testConds) {
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) == gv_p1_USER))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:3974
// Conditions
if (testConds) {
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) == gv_p1_USER))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:4125
// Conditions
if (testConds) {
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) == gv_p1_USER))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:4417
// Conditions
if (testConds) {
if (!((UnitGetType(EventUnitDamageSourceUnit()) == "Baneling"))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner05s.sc2map — MapScript.galaxy:2557
UnitSetCustomValue(lv_scientist, 0, 1.0);
if ((lv_scientist == EventUnit())) {
lv_angle = AngleBetweenPoints(UnitGetPosition(EventUnitDamageSourceUnit()), UnitGetPosition(lv_scientist));
}
else {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh01.sc2map — MapScript.galaxy:1001
}
if (!((UnitMoverExists(EventUnitDamageSourceUnit(), "Fly") == false))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh02.sc2map — MapScript.galaxy:1365
}
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) == gv_p1_USER))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh02.sc2map — MapScript.galaxy:1408
}
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) == gv_p1_USER))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03a.sc2map — MapScript.galaxy:1588
}
if (!((EventUnitDamageSourceUnit() == gv_tosh))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03a.sc2map — MapScript.galaxy:2309
}
if (!((EventUnitDamageSourceUnit() == gv_tosh))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03b.sc2map — MapScript.galaxy:1602
}
if (!((EventUnitDamageSourceUnit() != gv_nova))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03b.sc2map — MapScript.galaxy:1643
}
if (!((UnitGroupHasUnit(gv_p1MiTuGuards, EventUnitDamageSourceUnit()) == true))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03b.sc2map — MapScript.galaxy:1860
}
if (!((UnitTestState(EventUnitDamageSourceUnit(), c_unitStateCloaked) == true))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03b.sc2map — MapScript.galaxy:2558
}
if (!((UnitTestPlane(EventUnitDamageSourceUnit(), c_planeGround) == true))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03b.sc2map — MapScript.galaxy:3844
}
if (!((UnitTestPlane(EventUnitDamageSourceUnit(), c_planeAir) == true))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03b.sc2map — MapScript.galaxy:3848
}
if (!((libNtve_gf_UnitIsVisibleToPlayer(EventUnitDamageSourceUnit(), gv_pLAYER02_TOSH) == true))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03b.sc2map — MapScript.galaxy:3888
}
if (!((UnitTestPlane(EventUnitDamageSourceUnit(), c_planeAir) == true))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03b.sc2map — MapScript.galaxy:3892
}
if (!((libNtve_gf_UnitIsVisibleToPlayer(EventUnitDamageSourceUnit(), gv_pLAYER02_TOSH) == true))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03b.sc2map — MapScript.galaxy:3928
// Conditions
if (testConds) {
if (!((UnitGetType(EventUnitDamageSourceUnit()) == "Banshee"))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03b.sc2map — MapScript.galaxy:3969
// Conditions
if (testConds) {
if (!((UnitGetType(EventUnitDamageSourceUnit()) == "VikingFighter"))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus02.sc2map — MapScript.galaxy:2036
}
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) != gv_p1_USER))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus02.sc2map — MapScript.galaxy:2080
}
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) == gv_p1_USER))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus05.sc2map — MapScript.galaxy:1957
TriggerEnable(TriggerGetCurrent(), false);
UnitGroupIssueOrder(gv_gROUPRipFieldGeneratorResponse01, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(EventUnitDamageSourceUnit())), c_orderQueueReplace);
return true;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus05.sc2map — MapScript.galaxy:1985
TriggerEnable(TriggerGetCurrent(), false);
UnitGroupIssueOrder(gv_gROUPRipFieldGeneratorResponse02, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(EventUnitDamageSourceUnit())), c_orderQueueReplace);
return true;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus05.sc2map — MapScript.galaxy:2013
TriggerEnable(TriggerGetCurrent(), false);
UnitGroupIssueOrder(gv_gROUPVaultResponse, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(EventUnitDamageSourceUnit())), c_orderQueueReplace);
return true;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2map — MapScript.galaxy:1726
// Conditions
if (testConds) {
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) == gv_p1_USER))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2map — MapScript.galaxy:1872
// Conditions
if (testConds) {
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) == gv_p1_USER))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2map — MapScript.galaxy:2025
// Conditions
if (testConds) {
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) == gv_p1_USER))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2map — MapScript.galaxy:2171
// Conditions
if (testConds) {
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) == gv_p1_USER))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2map — MapScript.galaxy:2391
// Conditions
if (testConds) {
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) == gv_p1_USER))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2map — MapScript.galaxy:2575
// Conditions
if (testConds) {
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) == gv_p1_USER))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2map — MapScript.galaxy:3804
// Conditions
if (testConds) {
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) == gv_p1_USER))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2map — MapScript.galaxy:3974
// Conditions
if (testConds) {
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) == gv_p1_USER))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2map — MapScript.galaxy:4125
// Conditions
if (testConds) {
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) == gv_p1_USER))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2map — MapScript.galaxy:4417
// Conditions
if (testConds) {
if (!((UnitGetType(EventUnitDamageSourceUnit()) == "Baneling"))) {
return false;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zexpedition01.sc2map/MapScript.galaxy:3955
}
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) == gv_pLAYER_01_USER))) {
return false;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zexpedition01.sc2map/MapScript.galaxy:3995
}
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) == gv_pLAYER_01_USER))) {
return false;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zexpedition01.sc2map/MapScript.galaxy:4035
}
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) == gv_pLAYER_01_USER))) {
return false;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zexpedition03.sc2map/MapScript.galaxy:5049
}
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) == gv_pLAYER_01_USER))) {
return false;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zhybrid01.sc2map/MapScript.galaxy:4035
// Conditions
if (testConds) {
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) == gv_pLAYER_01_USER))) {
return false;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zkorhal02.sc2map/MapScript.galaxy:1907
}
if (!((EventUnitDamageSourceUnit() != gv_psiDestroyer))) {
return false;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zkorhal02.sc2map/MapScript.galaxy:1915
}
if (!((EventUnitDamageSourceUnit() != null))) {
return false;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zkorhal02.sc2map/MapScript.galaxy:1919
}
if (!((libNtve_gf_UnitIsVisibleToPlayer(EventUnitDamageSourceUnit(), gv_pLAYER_01_USER) == false))) {
return false;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zkorhal02.sc2map/MapScript.galaxy:1929
}
VisRevealArea(gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(EventUnitDamageSourceUnit()), 1.0), 2.0, true);
return true;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:8091
TriggerEnable(TriggerGetCurrent(), false);
UnitSetOwner(EventUnit(), gv_pLAYER_02_DOMINION, false);
UnitGroupIssueOrder(UnitGroup("UmojanLabMicrobot", gv_pLAYER_02_DOMINION, RegionCircle(UnitGetPosition(EventUnit()), 8.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(EventUnitDamageSourceUnit())), c_orderQueueAddToEnd);
Wait(15.0, c_timeGame);
TriggerEnable(TriggerGetCurrent(), true);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:8232
TriggerEnable(TriggerGetCurrent(), false);
UnitSetOwner(EventUnit(), gv_pLAYER_02_DOMINION, false);
UnitGroupIssueOrder(UnitGroup("UmojanLabMicrobot", gv_pLAYER_02_DOMINION, RegionCircle(UnitGetPosition(EventUnit()), 8.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(EventUnitDamageSourceUnit())), c_orderQueueAddToEnd);
Wait(15.0, c_timeGame);
TriggerEnable(TriggerGetCurrent(), true);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab02.sc2map/MapScript.galaxy:10101
}
if (!((EventUnitDamageSourceUnit() == gv_kerrigan22))) {
return false;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zspace01.sc2map/MapScript.galaxy:4951
}
if (!((EventUnitDamageSourceUnit() == gv_hyperion))) {
return false;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zspace02.sc2map/MapScript.galaxy:1440
// Conditions
if (testConds) {
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) == gv_p01_USER))) {
return false;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zspace02.sc2map/MapScript.galaxy:1459
autoE6B053BE_var = UnitGroupUnitFromEnd(autoE6B053BE_g, autoE6B053BE_u);
if (autoE6B053BE_var == null) { break; }
gf_FleePrisoners(autoE6B053BE_var, UnitGetPosition(EventUnitDamageSourceUnit()));
}
return true;
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zspace02.sc2map/MapScript.galaxy:3714
}
if (!(((UnitGetType(EventUnitDamageSourceUnit()) == "ImpalerBurrowed") || (UnitGetType(EventUnitDamageSourceUnit()) == "LurkerBurrowed")))) {
return false;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zspace02.sc2map/MapScript.galaxy:3714
}
if (!(((UnitGetType(EventUnitDamageSourceUnit()) == "ImpalerBurrowed") || (UnitGetType(EventUnitDamageSourceUnit()) == "LurkerBurrowed")))) {
return false;
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zexpedition01.sc2map — MapScript.galaxy:3955
}
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) == gv_pLAYER_01_USER))) {
return false;
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zexpedition01.sc2map — MapScript.galaxy:3995
}
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) == gv_pLAYER_01_USER))) {
return false;
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zexpedition01.sc2map — MapScript.galaxy:4035
}
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) == gv_pLAYER_01_USER))) {
return false;
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zexpedition03.sc2map — MapScript.galaxy:5049
}
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) == gv_pLAYER_01_USER))) {
return false;
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid01.sc2map — MapScript.galaxy:4035
// Conditions
if (testConds) {
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) == gv_pLAYER_01_USER))) {
return false;
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal02.sc2map — MapScript.galaxy:1907
}
if (!((EventUnitDamageSourceUnit() != gv_psiDestroyer))) {
return false;
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal02.sc2map — MapScript.galaxy:1915
}
if (!((EventUnitDamageSourceUnit() != null))) {
return false;
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal02.sc2map — MapScript.galaxy:1919
}
if (!((libNtve_gf_UnitIsVisibleToPlayer(EventUnitDamageSourceUnit(), gv_pLAYER_01_USER) == false))) {
return false;
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal02.sc2map — MapScript.galaxy:1929
}
VisRevealArea(gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(EventUnitDamageSourceUnit()), 1.0), 2.0, true);
return true;
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2map — MapScript.galaxy:8091
TriggerEnable(TriggerGetCurrent(), false);
UnitSetOwner(EventUnit(), gv_pLAYER_02_DOMINION, false);
UnitGroupIssueOrder(UnitGroup("UmojanLabMicrobot", gv_pLAYER_02_DOMINION, RegionCircle(UnitGetPosition(EventUnit()), 8.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(EventUnitDamageSourceUnit())), c_orderQueueAddToEnd);
Wait(15.0, c_timeGame);
TriggerEnable(TriggerGetCurrent(), true);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2map — MapScript.galaxy:8232
TriggerEnable(TriggerGetCurrent(), false);
UnitSetOwner(EventUnit(), gv_pLAYER_02_DOMINION, false);
UnitGroupIssueOrder(UnitGroup("UmojanLabMicrobot", gv_pLAYER_02_DOMINION, RegionCircle(UnitGetPosition(EventUnit()), 8.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(EventUnitDamageSourceUnit())), c_orderQueueAddToEnd);
Wait(15.0, c_timeGame);
TriggerEnable(TriggerGetCurrent(), true);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab02.sc2map — MapScript.galaxy:10101
}
if (!((EventUnitDamageSourceUnit() == gv_kerrigan22))) {
return false;
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace01.sc2map — MapScript.galaxy:4951
}
if (!((EventUnitDamageSourceUnit() == gv_hyperion))) {
return false;
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace02.sc2map — MapScript.galaxy:1440
// Conditions
if (testConds) {
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) == gv_p01_USER))) {
return false;
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace02.sc2map — MapScript.galaxy:1459
autoE6B053BE_var = UnitGroupUnitFromEnd(autoE6B053BE_g, autoE6B053BE_u);
if (autoE6B053BE_var == null) { break; }
gf_FleePrisoners(autoE6B053BE_var, UnitGetPosition(EventUnitDamageSourceUnit()));
}
return true;
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace02.sc2map — MapScript.galaxy:3714
}
if (!(((UnitGetType(EventUnitDamageSourceUnit()) == "ImpalerBurrowed") || (UnitGetType(EventUnitDamageSourceUnit()) == "LurkerBurrowed")))) {
return false;
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace02.sc2map — MapScript.galaxy:3714
}
if (!(((UnitGetType(EventUnitDamageSourceUnit()) == "ImpalerBurrowed") || (UnitGetType(EventUnitDamageSourceUnit()) == "LurkerBurrowed")))) {
return false;
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:17054
}
if (!((UnitFilterMatch(EventUnitDamageSourceUnit(), 1, UnitFilter((1 << c_targetFilterGround), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)))) == true))) {
return false;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/ppurifier03.sc2map/MapScript.galaxy:4945
}
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) != gv_pLAYER_01_USER))) {
return false;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pulnar03.sc2map/MapScript.galaxy:5175
}
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) == gv_pLAYER_01_USER))) {
return false;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pulnar03.sc2map/MapScript.galaxy:5215
}
if (!((UnitGetOwner(EventUnitDamageSourceUnit()) == gv_pLAYER_01_USER))) {
return false;
}