# Unit Takes Damage

Grammaru takes damageFatalOption damageType damage (from damageEffect effects)
FlagsNative | Event

This event fires when a unit takes damage. Use “Damage Source Position” to get the position of the damage source. Use “Damaging Player” to get the owner of the unit that is dealing damage. Use “Damaging Unit” to get the unit that is dealing damage. Use “Triggering Damage Amount” to get the amount of damage being dealt. Use “Triggering Player” to get the owner of the unit that is taking damage. Use “Triggering Unit” to get the unit that is taking damage.

# Arguments

  • unitref<unit> — Unit
  • int<preset::DamageType> — Damage Type
  • int<preset::DamageFatalOption> — Damage Fatal Option
  • string<gamelink::Effect> — Damage Effect

Returns — void

native void TriggerAddEventUnitDamaged(
	trigger inTrigger,
	unitref inUnit,
	int inDamageType,
	int inDamageFatal,
	string inEffect,
);

# Event parameters

Category: Unit / Combat

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:8081

void gt_BossHPBar_Init () {
    gt_BossHPBar = TriggerCreate("gt_BossHPBar_Func");
    TriggerAddEventUnitDamaged(gt_BossHPBar, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:8151

void gt_UnitHPBar_Init () {
    gt_UnitHPBar = TriggerCreate("gt_UnitHPBar_Func");
    TriggerAddEventUnitDamaged(gt_UnitHPBar, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:2658

void gt_ConvoyGuardsareUnderAttackQ_Init () {
    gt_ConvoyGuardsareUnderAttackQ = TriggerCreate("gt_ConvoyGuardsareUnderAttackQ_Func");
    TriggerAddEventUnitDamaged(gt_ConvoyGuardsareUnderAttackQ, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:1183

void gt_InfestorNorthFoundEarly_Init () {
    gt_InfestorNorthFoundEarly = TriggerCreate("gt_InfestorNorthFoundEarly_Func");
    TriggerAddEventUnitDamaged(gt_InfestorNorthFoundEarly, UnitRefFromUnit(UnitFromId(1110)), c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:1213

void gt_InfestorSouthFoundEarly_Init () {
    gt_InfestorSouthFoundEarly = TriggerCreate("gt_InfestorSouthFoundEarly_Func");
    TriggerAddEventUnitDamaged(gt_InfestorSouthFoundEarly, UnitRefFromUnit(UnitFromId(927)), c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:3489

void gt_TransmissionInfestedRefugeeSightedQ_Init () {
    gt_TransmissionInfestedRefugeeSightedQ = TriggerCreate("gt_TransmissionInfestedRefugeeSightedQ_Func");
    TriggerAddEventUnitDamaged(gt_TransmissionInfestedRefugeeSightedQ, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:3544

void gt_TransmissionInfestedMarineSightedQ_Init () {
    gt_TransmissionInfestedMarineSightedQ = TriggerCreate("gt_TransmissionInfestedMarineSightedQ_Func");
    TriggerAddEventUnitDamaged(gt_TransmissionInfestedMarineSightedQ, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:3602

void gt_TransmissionAberrationSightedQ_Init () {
    gt_TransmissionAberrationSightedQ = TriggerCreate("gt_TransmissionAberrationSightedQ_Func");
    TriggerAddEventUnitDamaged(gt_TransmissionAberrationSightedQ, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:4343

void gt_TransmissionBetaShipUnderAttackQ_Init () {
    gt_TransmissionBetaShipUnderAttackQ = TriggerCreate("gt_TransmissionBetaShipUnderAttackQ_Func");
    TriggerAddEventUnitDamaged(gt_TransmissionBetaShipUnderAttackQ, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:4393

void gt_TransmissionGammaShipUnderAttackQ_Init () {
    gt_TransmissionGammaShipUnderAttackQ = TriggerCreate("gt_TransmissionGammaShipUnderAttackQ_Func");
    TriggerAddEventUnitDamaged(gt_TransmissionGammaShipUnderAttackQ, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:4443

void gt_TransmissionOmegaShipUnderAttackQ_Init () {
    gt_TransmissionOmegaShipUnderAttackQ = TriggerCreate("gt_TransmissionOmegaShipUnderAttackQ_Func");
    TriggerAddEventUnitDamaged(gt_TransmissionOmegaShipUnderAttackQ, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:4502

void gt_VictoryDestroyOrlanCompleted_Init () {
    gt_VictoryDestroyOrlanCompleted = TriggerCreate("gt_VictoryDestroyOrlanCompleted_Func");
    TriggerAddEventUnitDamaged(gt_VictoryDestroyOrlanCompleted, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:4376

    gt_AchievementOdinHealthBelow30Hard = TriggerCreate("gt_AchievementOdinHealthBelow30Hard_Func");
    TriggerEnable(gt_AchievementOdinHealthBelow30Hard, false);
    TriggerAddEventUnitDamaged(gt_AchievementOdinHealthBelow30Hard, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:5768

void gt_MidValhallaDoorDamage_Init () {
    gt_MidValhallaDoorDamage = TriggerCreate("gt_MidValhallaDoorDamage_Func");
    TriggerAddEventUnitDamaged(gt_MidValhallaDoorDamage, UnitRefFromUnit(UnitFromId(341)), c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:1378

    TriggerEnable(gt_CiviliansAttackedandCower, false);
    TriggerAddEventUnitDied(gt_CiviliansAttackedandCower, null);
    TriggerAddEventUnitDamaged(gt_CiviliansAttackedandCower, null, c_unitDamageTypeAny, c_unitDamageEither, EventUnitDamageEffect());
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:4908

    gt_TransmissionCivilianSquishArea1Q = TriggerCreate("gt_TransmissionCivilianSquishArea1Q_Func");
    TriggerAddEventUnitDied(gt_TransmissionCivilianSquishArea1Q, null);
    TriggerAddEventUnitDamaged(gt_TransmissionCivilianSquishArea1Q, null, c_unitDamageTypeAny, c_unitDamageEither, EventUnitDamageEffect());
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:4948

    gt_TransmissionCivilianSquishArea2Q = TriggerCreate("gt_TransmissionCivilianSquishArea2Q_Func");
    TriggerAddEventUnitDied(gt_TransmissionCivilianSquishArea2Q, null);
    TriggerAddEventUnitDamaged(gt_TransmissionCivilianSquishArea2Q, null, c_unitDamageTypeAny, c_unitDamageEither, EventUnitDamageEffect());
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:4988

    gt_TransmissionCivilianSquishArea3Q = TriggerCreate("gt_TransmissionCivilianSquishArea3Q_Func");
    TriggerAddEventUnitDied(gt_TransmissionCivilianSquishArea3Q, null);
    TriggerAddEventUnitDamaged(gt_TransmissionCivilianSquishArea3Q, null, c_unitDamageTypeAny, c_unitDamageEither, EventUnitDamageEffect());
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:5028

    gt_TransmissionCivilianSquishArea4Q = TriggerCreate("gt_TransmissionCivilianSquishArea4Q_Func");
    TriggerAddEventUnitDied(gt_TransmissionCivilianSquishArea4Q, null);
    TriggerAddEventUnitDamaged(gt_TransmissionCivilianSquishArea4Q, null, c_unitDamageTypeAny, c_unitDamageEither, EventUnitDamageEffect());
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:5068

    gt_TransmissionCivilianSquishArea5Q = TriggerCreate("gt_TransmissionCivilianSquishArea5Q_Func");
    TriggerAddEventUnitDied(gt_TransmissionCivilianSquishArea5Q, null);
    TriggerAddEventUnitDamaged(gt_TransmissionCivilianSquishArea5Q, null, c_unitDamageTypeAny, c_unitDamageEither, EventUnitDamageEffect());
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:2576

void gt_ScientistsRunFromFire_Init () {
    gt_ScientistsRunFromFire = TriggerCreate("gt_ScientistsRunFromFire_Func");
    TriggerAddEventUnitDamaged(gt_ScientistsRunFromFire, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:6210

    gt_FusionCoreTakesDamage = TriggerCreate("gt_FusionCoreTakesDamage_Func");
    TriggerEnable(gt_FusionCoreTakesDamage, false);
    TriggerAddEventUnitDamaged(gt_FusionCoreTakesDamage, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:6240

    gt_Rockstakedamage = TriggerCreate("gt_Rockstakedamage_Func");
    TriggerEnable(gt_Rockstakedamage, false);
    TriggerAddEventUnitDamaged(gt_Rockstakedamage, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:9961

void gt_HybridRegeneration_Init () {
    gt_HybridRegeneration = TriggerCreate("gt_HybridRegeneration_Func");
    TriggerAddEventUnitDamaged(gt_HybridRegeneration, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor01.sc2map/MapScript.galaxy:1214

void gt_RoadblockAttacked_Init () {
    gt_RoadblockAttacked = TriggerCreate("gt_RoadblockAttacked_Func");
    TriggerAddEventUnitDamaged(gt_RoadblockAttacked, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor01.sc2map/MapScript.galaxy:2276

void gt_EscapeDamage_Init () {
    gt_EscapeDamage = TriggerCreate("gt_EscapeDamage_Func");
    TriggerAddEventUnitDamaged(gt_EscapeDamage, UnitRefFromUnit(UnitFromId(1615)), c_unitDamageTypeAny, c_unitDamageEither, null);
    TriggerAddEventUnitDamaged(gt_EscapeDamage, UnitRefFromUnit(UnitFromId(1464)), c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor01.sc2map/MapScript.galaxy:2277

    gt_EscapeDamage = TriggerCreate("gt_EscapeDamage_Func");
    TriggerAddEventUnitDamaged(gt_EscapeDamage, UnitRefFromUnit(UnitFromId(1615)), c_unitDamageTypeAny, c_unitDamageEither, null);
    TriggerAddEventUnitDamaged(gt_EscapeDamage, UnitRefFromUnit(UnitFromId(1464)), c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor01.sc2map/MapScript.galaxy:4557

void gt_ObjectiveDestroyDominionHoloboardsUpdate_Init () {
    gt_ObjectiveDestroyDominionHoloboardsUpdate = TriggerCreate("gt_ObjectiveDestroyDominionHoloboardsUpdate_Func");
    TriggerAddEventUnitDamaged(gt_ObjectiveDestroyDominionHoloboardsUpdate, null, c_unitDamageTypeAny, c_unitDamageFatal, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh01.sc2map/MapScript.galaxy:1028

    gt_DirtyBanelingCrewViaDamage = TriggerCreate("gt_DirtyBanelingCrewViaDamage_Func");
    TriggerEnable(gt_DirtyBanelingCrewViaDamage, false);
    TriggerAddEventUnitDamaged(gt_DirtyBanelingCrewViaDamage, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh01.sc2map/MapScript.galaxy:1736

void gt_BrutaliskRemovePingActor_Init () {
    gt_BrutaliskRemovePingActor = TriggerCreate("gt_BrutaliskRemovePingActor_Func");
    TriggerAddEventUnitDamaged(gt_BrutaliskRemovePingActor, UnitRefFromUnit(UnitFromId(407)), c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:1390

void gt_HarvestingSpeedBumpsNWesternTerritory_Init () {
    gt_HarvestingSpeedBumpsNWesternTerritory = TriggerCreate("gt_HarvestingSpeedBumpsNWesternTerritory_Func");
    TriggerAddEventUnitDamaged(gt_HarvestingSpeedBumpsNWesternTerritory, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:1437

void gt_HarvestingSpeedBumpsCentralTerritory_Init () {
    gt_HarvestingSpeedBumpsCentralTerritory = TriggerCreate("gt_HarvestingSpeedBumpsCentralTerritory_Func");
    TriggerAddEventUnitDamaged(gt_HarvestingSpeedBumpsCentralTerritory, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:1659

void gt_ToshVictims_Init () {
    gt_ToshVictims = TriggerCreate("gt_ToshVictims_Func");
    TriggerAddEventUnitDamaged(gt_ToshVictims, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:2372

void gt_CellBlockAPatrolSearching_Init () {
    gt_CellBlockAPatrolSearching = TriggerCreate("gt_CellBlockAPatrolSearching_Func");
    TriggerAddEventUnitDamaged(gt_CellBlockAPatrolSearching, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:4420

void gt_StatEnemiesKilledByNukes_Init () {
    gt_StatEnemiesKilledByNukes = TriggerCreate("gt_StatEnemiesKilledByNukes_Func");
    TriggerAddEventUnitDamaged(gt_StatEnemiesKilledByNukes, null, c_unitDamageTypeAny, c_unitDamageFatal, "HeroNukeDamage");
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:4503

void gt_StatToshLowestHealth_Init () {
    gt_StatToshLowestHealth = TriggerCreate("gt_StatToshLowestHealth_Func");
    TriggerAddEventUnitDamaged(gt_StatToshLowestHealth, UnitRefFromVariable("gv_tosh"), c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:1621

void gt_P1MiTuGuardsEngaged_Init () {
    gt_P1MiTuGuardsEngaged = TriggerCreate("gt_P1MiTuGuardsEngaged_Func");
    TriggerAddEventUnitDamaged(gt_P1MiTuGuardsEngaged, null, c_unitDamageTypeAny, c_unitDamageNonFatal, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:1676

void gt_P1MiTuHelpMeQ_Init () {
    gt_P1MiTuHelpMeQ = TriggerCreate("gt_P1MiTuHelpMeQ_Func");
    TriggerAddEventUnitDamaged(gt_P1MiTuHelpMeQ, null, c_unitDamageTypeAny, c_unitDamageNonFatal, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:1887

void gt_P1NighthawkSpot_Init () {
    gt_P1NighthawkSpot = TriggerCreate("gt_P1NighthawkSpot_Func");
    TriggerAddEventUnitDamaged(gt_P1NighthawkSpot, null, c_unitDamageTypeAny, c_unitDamageNonFatal, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:2400

void gt_P2RavenAttacked_Init () {
    gt_P2RavenAttacked = TriggerCreate("gt_P2RavenAttacked_Func");
    TriggerAddEventUnitDamaged(gt_P2RavenAttacked, null, c_unitDamageTypeAny, c_unitDamageNonFatal, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:2589

void gt_P2LZVikingsLand_Init () {
    gt_P2LZVikingsLand = TriggerCreate("gt_P2LZVikingsLand_Func");
    TriggerAddEventUnitDamaged(gt_P2LZVikingsLand, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:3177

void gt_P2BansheeCloak_Init () {
    gt_P2BansheeCloak = TriggerCreate("gt_P2BansheeCloak_Func");
    TriggerAddEventUnitDamaged(gt_P2BansheeCloak, UnitRefFromUnit(UnitFromId(684)), c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:3874

void gt_P3SouthViking_Init () {
    gt_P3SouthViking = TriggerCreate("gt_P3SouthViking_Func");
    TriggerAddEventUnitDamaged(gt_P3SouthViking, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:3918

void gt_P3NorthViking_Init () {
    gt_P3NorthViking = TriggerCreate("gt_P3NorthViking_Func");
    TriggerAddEventUnitDamaged(gt_P3NorthViking, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:3959

void gt_P3SouthRavenDrone_Init () {
    gt_P3SouthRavenDrone = TriggerCreate("gt_P3SouthRavenDrone_Func");
    TriggerAddEventUnitDamaged(gt_P3SouthRavenDrone, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:4000

void gt_P3SouthRavenTurrets_Init () {
    gt_P3SouthRavenTurrets = TriggerCreate("gt_P3SouthRavenTurrets_Func");
    TriggerAddEventUnitDamaged(gt_P3SouthRavenTurrets, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:1104

void gt_OutsideProtossBaseWarpIn_Init () {
    gt_OutsideProtossBaseWarpIn = TriggerCreate("gt_OutsideProtossBaseWarpIn_Func");
    TriggerAddEventUnitDamaged(gt_OutsideProtossBaseWarpIn, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:1321

void gt_StalkerAggro_Init () {
    gt_StalkerAggro = TriggerCreate("gt_StalkerAggro_Func");
    TriggerAddEventUnitDamaged(gt_StalkerAggro, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:2066

    gt_Laserisattackedbyenemy = TriggerCreate("gt_Laserisattackedbyenemy_Func");
    TriggerEnable(gt_Laserisattackedbyenemy, false);
    TriggerAddEventUnitDamaged(gt_Laserisattackedbyenemy, UnitRefFromUnit(UnitFromId(409)), c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:2115

    gt_LaserisattackedbyplayerQ = TriggerCreate("gt_LaserisattackedbyplayerQ_Func");
    TriggerEnable(gt_LaserisattackedbyplayerQ, false);
    TriggerAddEventUnitDamaged(gt_LaserisattackedbyplayerQ, UnitRefFromUnit(UnitFromId(409)), c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus05.sc2map/MapScript.galaxy:1964

void gt_RipFieldGeneratorResponse1_Init () {
    gt_RipFieldGeneratorResponse1 = TriggerCreate("gt_RipFieldGeneratorResponse1_Func");
    TriggerAddEventUnitDamaged(gt_RipFieldGeneratorResponse1, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus05.sc2map/MapScript.galaxy:1992

void gt_RipFieldGeneratorResponse2_Init () {
    gt_RipFieldGeneratorResponse2 = TriggerCreate("gt_RipFieldGeneratorResponse2_Func");
    TriggerAddEventUnitDamaged(gt_RipFieldGeneratorResponse2, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus05.sc2map/MapScript.galaxy:2020

void gt_XelnagaVaultResponse_Init () {
    gt_XelnagaVaultResponse = TriggerCreate("gt_XelnagaVaultResponse_Func");
    TriggerAddEventUnitDamaged(gt_XelnagaVaultResponse, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus05.sc2map/MapScript.galaxy:2584

void gt_MothershipWarmholeVAULT_Init () {
    gt_MothershipWarmholeVAULT = TriggerCreate("gt_MothershipWarmholeVAULT_Func");
    TriggerAddEventUnitDamaged(gt_MothershipWarmholeVAULT, null, c_unitDamageTypeAny, c_unitDamageNonFatal, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus05.sc2map/MapScript.galaxy:2626

void gt_MothershipWarmhole75health_Init () {
    gt_MothershipWarmhole75health = TriggerCreate("gt_MothershipWarmhole75health_Func");
    TriggerAddEventUnitDamaged(gt_MothershipWarmhole75health, null, c_unitDamageTypeAny, c_unitDamageNonFatal, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus05.sc2map/MapScript.galaxy:2668

void gt_MothershipWarmhole30health_Init () {
    gt_MothershipWarmhole30health = TriggerCreate("gt_MothershipWarmhole30health_Func");
    TriggerAddEventUnitDamaged(gt_MothershipWarmhole30health, null, c_unitDamageTypeAny, c_unitDamageNonFatal, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:1759

void gt__1TeachSnipeTripViaDamage_Init () {
    gt__1TeachSnipeTripViaDamage = TriggerCreate("gt__1TeachSnipeTripViaDamage_Func");
    TriggerAddEventUnitDamaged(gt__1TeachSnipeTripViaDamage, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:1905

void gt__1TeachSnipeAgainTripViaDamage_Init () {
    gt__1TeachSnipeAgainTripViaDamage = TriggerCreate("gt__1TeachSnipeAgainTripViaDamage_Func");
    TriggerAddEventUnitDamaged(gt__1TeachSnipeAgainTripViaDamage, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:2058

void gt__1TeachNadesTripViaDamage_Init () {
    gt__1TeachNadesTripViaDamage = TriggerCreate("gt__1TeachNadesTripViaDamage_Func");
    TriggerAddEventUnitDamaged(gt__1TeachNadesTripViaDamage, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:2204

void gt__1TeachNadesAgainTripViaDamage_Init () {
    gt__1TeachNadesAgainTripViaDamage = TriggerCreate("gt__1TeachNadesAgainTripViaDamage_Func");
    TriggerAddEventUnitDamaged(gt__1TeachNadesAgainTripViaDamage, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:2424

void gt__1TeachBettyViaDamage_Init () {
    gt__1TeachBettyViaDamage = TriggerCreate("gt__1TeachBettyViaDamage_Func");
    TriggerAddEventUnitDamaged(gt__1TeachBettyViaDamage, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:2608

void gt__1ZergKillTeamTripViaDamage_Init () {
    gt__1ZergKillTeamTripViaDamage = TriggerCreate("gt__1ZergKillTeamTripViaDamage_Func");
    TriggerAddEventUnitDamaged(gt__1ZergKillTeamTripViaDamage, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:3837

void gt__2StoryTellingTripViaDamage_Init () {
    gt__2StoryTellingTripViaDamage = TriggerCreate("gt__2StoryTellingTripViaDamage_Func");
    TriggerAddEventUnitDamaged(gt__2StoryTellingTripViaDamage, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:4007

void gt__2ZombieRaid1TripViaDamage_Init () {
    gt__2ZombieRaid1TripViaDamage = TriggerCreate("gt__2ZombieRaid1TripViaDamage_Func");
    TriggerAddEventUnitDamaged(gt__2ZombieRaid1TripViaDamage, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:4158

void gt__2ZombieRaid2TripViaDamage_Init () {
    gt__2ZombieRaid2TripViaDamage = TriggerCreate("gt__2ZombieRaid2TripViaDamage_Func");
    TriggerAddEventUnitDamaged(gt__2ZombieRaid2TripViaDamage, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:4439

    gt__2BanelingSplashDetection = TriggerCreate("gt__2BanelingSplashDetection_Func");
    TriggerEnable(gt__2BanelingSplashDetection, false);
    TriggerAddEventUnitDamaged(gt__2BanelingSplashDetection, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:1893

void gt_VoidPrisonVictim1Dies_Init () {
    gt_VoidPrisonVictim1Dies = TriggerCreate("gt_VoidPrisonVictim1Dies_Func");
    TriggerAddEventUnitDamaged(gt_VoidPrisonVictim1Dies, UnitRefFromUnit(UnitFromId(36)), c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:2042

void gt_DyingUltralisk_Init () {
    gt_DyingUltralisk = TriggerCreate("gt_DyingUltralisk_Func");
    TriggerAddEventUnitDamaged(gt_DyingUltralisk, UnitRefFromUnit(UnitFromId(230)), c_unitDamageTypeAny, c_unitDamageNonFatal, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:4460

    gt_DyingUltralisksHatchery2 = TriggerCreate("gt_DyingUltralisksHatchery2_Func");
    TriggerEnable(gt_DyingUltralisksHatchery2, false);
    TriggerAddEventUnitDamaged(gt_DyingUltralisksHatchery2, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:5861

void gt_KerriganRegeneration_Init () {
    gt_KerriganRegeneration = TriggerCreate("gt_KerriganRegeneration_Func");
    TriggerAddEventUnitDamaged(gt_KerriganRegeneration, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:7651

void gt_AchievementZeratulHurtAdvanced_Init () {
    gt_AchievementZeratulHurtAdvanced = TriggerCreate("gt_AchievementZeratulHurtAdvanced_Func");
    TriggerAddEventUnitDamaged(gt_AchievementZeratulHurtAdvanced, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:1953

void gt_PsionicShockwaveFirst_Init () {
    gt_PsionicShockwaveFirst = TriggerCreate("gt_PsionicShockwaveFirst_Func");
    TriggerAddEventUnitDamaged(gt_PsionicShockwaveFirst, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:2004

void gt_PsionicShockwaveSecond_Init () {
    gt_PsionicShockwaveSecond = TriggerCreate("gt_PsionicShockwaveSecond_Func");
    TriggerAddEventUnitDamaged(gt_PsionicShockwaveSecond, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:2059

void gt_PsionicShockwaveThirdInsane_Init () {
    gt_PsionicShockwaveThirdInsane = TriggerCreate("gt_PsionicShockwaveThirdInsane_Func");
    TriggerAddEventUnitDamaged(gt_PsionicShockwaveThirdInsane, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2mapMapScript.galaxy:8081

void gt_BossHPBar_Init () {
    gt_BossHPBar = TriggerCreate("gt_BossHPBar_Func");
    TriggerAddEventUnitDamaged(gt_BossHPBar, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2mapMapScript.galaxy:8151

void gt_UnitHPBar_Init () {
    gt_UnitHPBar = TriggerCreate("gt_UnitHPBar_Func");
    TriggerAddEventUnitDamaged(gt_UnitHPBar, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson01.sc2mapMapScript.galaxy:2658

void gt_ConvoyGuardsareUnderAttackQ_Init () {
    gt_ConvoyGuardsareUnderAttackQ = TriggerCreate("gt_ConvoyGuardsareUnderAttackQ_Func");
    TriggerAddEventUnitDamaged(gt_ConvoyGuardsareUnderAttackQ, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson02.sc2mapMapScript.galaxy:1183

void gt_InfestorNorthFoundEarly_Init () {
    gt_InfestorNorthFoundEarly = TriggerCreate("gt_InfestorNorthFoundEarly_Func");
    TriggerAddEventUnitDamaged(gt_InfestorNorthFoundEarly, UnitRefFromUnit(UnitFromId(1110)), c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson02.sc2mapMapScript.galaxy:1213

void gt_InfestorSouthFoundEarly_Init () {
    gt_InfestorSouthFoundEarly = TriggerCreate("gt_InfestorSouthFoundEarly_Func");
    TriggerAddEventUnitDamaged(gt_InfestorSouthFoundEarly, UnitRefFromUnit(UnitFromId(927)), c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson02.sc2mapMapScript.galaxy:3489

void gt_TransmissionInfestedRefugeeSightedQ_Init () {
    gt_TransmissionInfestedRefugeeSightedQ = TriggerCreate("gt_TransmissionInfestedRefugeeSightedQ_Func");
    TriggerAddEventUnitDamaged(gt_TransmissionInfestedRefugeeSightedQ, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson02.sc2mapMapScript.galaxy:3544

void gt_TransmissionInfestedMarineSightedQ_Init () {
    gt_TransmissionInfestedMarineSightedQ = TriggerCreate("gt_TransmissionInfestedMarineSightedQ_Func");
    TriggerAddEventUnitDamaged(gt_TransmissionInfestedMarineSightedQ, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson02.sc2mapMapScript.galaxy:3602

void gt_TransmissionAberrationSightedQ_Init () {
    gt_TransmissionAberrationSightedQ = TriggerCreate("gt_TransmissionAberrationSightedQ_Func");
    TriggerAddEventUnitDamaged(gt_TransmissionAberrationSightedQ, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03a.sc2mapMapScript.galaxy:4343

void gt_TransmissionBetaShipUnderAttackQ_Init () {
    gt_TransmissionBetaShipUnderAttackQ = TriggerCreate("gt_TransmissionBetaShipUnderAttackQ_Func");
    TriggerAddEventUnitDamaged(gt_TransmissionBetaShipUnderAttackQ, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03a.sc2mapMapScript.galaxy:4393

void gt_TransmissionGammaShipUnderAttackQ_Init () {
    gt_TransmissionGammaShipUnderAttackQ = TriggerCreate("gt_TransmissionGammaShipUnderAttackQ_Func");
    TriggerAddEventUnitDamaged(gt_TransmissionGammaShipUnderAttackQ, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03a.sc2mapMapScript.galaxy:4443

void gt_TransmissionOmegaShipUnderAttackQ_Init () {
    gt_TransmissionOmegaShipUnderAttackQ = TriggerCreate("gt_TransmissionOmegaShipUnderAttackQ_Func");
    TriggerAddEventUnitDamaged(gt_TransmissionOmegaShipUnderAttackQ, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2mapMapScript.galaxy:4502

void gt_VictoryDestroyOrlanCompleted_Init () {
    gt_VictoryDestroyOrlanCompleted = TriggerCreate("gt_VictoryDestroyOrlanCompleted_Func");
    TriggerAddEventUnitDamaged(gt_VictoryDestroyOrlanCompleted, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner03.sc2mapMapScript.galaxy:4376

    gt_AchievementOdinHealthBelow30Hard = TriggerCreate("gt_AchievementOdinHealthBelow30Hard_Func");
    TriggerEnable(gt_AchievementOdinHealthBelow30Hard, false);
    TriggerAddEventUnitDamaged(gt_AchievementOdinHealthBelow30Hard, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner03.sc2mapMapScript.galaxy:5768

void gt_MidValhallaDoorDamage_Init () {
    gt_MidValhallaDoorDamage = TriggerCreate("gt_MidValhallaDoorDamage_Func");
    TriggerAddEventUnitDamaged(gt_MidValhallaDoorDamage, UnitRefFromUnit(UnitFromId(341)), c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner04.sc2mapMapScript.galaxy:1378

    TriggerEnable(gt_CiviliansAttackedandCower, false);
    TriggerAddEventUnitDied(gt_CiviliansAttackedandCower, null);
    TriggerAddEventUnitDamaged(gt_CiviliansAttackedandCower, null, c_unitDamageTypeAny, c_unitDamageEither, EventUnitDamageEffect());
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner04.sc2mapMapScript.galaxy:4908

    gt_TransmissionCivilianSquishArea1Q = TriggerCreate("gt_TransmissionCivilianSquishArea1Q_Func");
    TriggerAddEventUnitDied(gt_TransmissionCivilianSquishArea1Q, null);
    TriggerAddEventUnitDamaged(gt_TransmissionCivilianSquishArea1Q, null, c_unitDamageTypeAny, c_unitDamageEither, EventUnitDamageEffect());
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner04.sc2mapMapScript.galaxy:4948

    gt_TransmissionCivilianSquishArea2Q = TriggerCreate("gt_TransmissionCivilianSquishArea2Q_Func");
    TriggerAddEventUnitDied(gt_TransmissionCivilianSquishArea2Q, null);
    TriggerAddEventUnitDamaged(gt_TransmissionCivilianSquishArea2Q, null, c_unitDamageTypeAny, c_unitDamageEither, EventUnitDamageEffect());
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner04.sc2mapMapScript.galaxy:4988

    gt_TransmissionCivilianSquishArea3Q = TriggerCreate("gt_TransmissionCivilianSquishArea3Q_Func");
    TriggerAddEventUnitDied(gt_TransmissionCivilianSquishArea3Q, null);
    TriggerAddEventUnitDamaged(gt_TransmissionCivilianSquishArea3Q, null, c_unitDamageTypeAny, c_unitDamageEither, EventUnitDamageEffect());
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner04.sc2mapMapScript.galaxy:5028

    gt_TransmissionCivilianSquishArea4Q = TriggerCreate("gt_TransmissionCivilianSquishArea4Q_Func");
    TriggerAddEventUnitDied(gt_TransmissionCivilianSquishArea4Q, null);
    TriggerAddEventUnitDamaged(gt_TransmissionCivilianSquishArea4Q, null, c_unitDamageTypeAny, c_unitDamageEither, EventUnitDamageEffect());
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner04.sc2mapMapScript.galaxy:5068

    gt_TransmissionCivilianSquishArea5Q = TriggerCreate("gt_TransmissionCivilianSquishArea5Q_Func");
    TriggerAddEventUnitDied(gt_TransmissionCivilianSquishArea5Q, null);
    TriggerAddEventUnitDamaged(gt_TransmissionCivilianSquishArea5Q, null, c_unitDamageTypeAny, c_unitDamageEither, EventUnitDamageEffect());
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner05s.sc2mapMapScript.galaxy:2576

void gt_ScientistsRunFromFire_Init () {
    gt_ScientistsRunFromFire = TriggerCreate("gt_ScientistsRunFromFire_Func");
    TriggerAddEventUnitDamaged(gt_ScientistsRunFromFire, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner05s.sc2mapMapScript.galaxy:6210

    gt_FusionCoreTakesDamage = TriggerCreate("gt_FusionCoreTakesDamage_Func");
    TriggerEnable(gt_FusionCoreTakesDamage, false);
    TriggerAddEventUnitDamaged(gt_FusionCoreTakesDamage, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner05s.sc2mapMapScript.galaxy:6240

    gt_Rockstakedamage = TriggerCreate("gt_Rockstakedamage_Func");
    TriggerEnable(gt_Rockstakedamage, false);
    TriggerAddEventUnitDamaged(gt_Rockstakedamage, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner05s.sc2mapMapScript.galaxy:9961

void gt_HybridRegeneration_Init () {
    gt_HybridRegeneration = TriggerCreate("gt_HybridRegeneration_Func");
    TriggerAddEventUnitDamaged(gt_HybridRegeneration, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor01.sc2mapMapScript.galaxy:1214

void gt_RoadblockAttacked_Init () {
    gt_RoadblockAttacked = TriggerCreate("gt_RoadblockAttacked_Func");
    TriggerAddEventUnitDamaged(gt_RoadblockAttacked, null, c_unitDamageTypeAny, c_unitDamageEither, null);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor01.sc2mapMapScript.galaxy:2276

void gt_EscapeDamage_Init () {
    gt_EscapeDamage = TriggerCreate("gt_EscapeDamage_Func");
    TriggerAddEventUnitDamaged(gt_EscapeDamage, UnitRefFromUnit(UnitFromId(1615)), c_unitDamageTypeAny, c_unitDamageEither, null);
    TriggerAddEventUnitDamaged(gt_EscapeDamage, UnitRefFromUnit(UnitFromId(1464)), c_unitDamageTypeAny, c_unitDamageEither, null);
}