# Unit Is Attacked
Grammar — u is attacked with weapon
Flags —Native
|Event
This event fires when a unit is attacked. Use “Attacking Unit” to refer to the unit performing the attack. Use “Triggering Unit” to refer to the unit being attacked. Use “Triggering Player” to get the owner of the unit being attacked.
# Arguments
unitref
<unit> — Unitstring
<gamelink::Weapon> — Weapon
Returns — void
native void TriggerAddEventUnitAttacked2(
trigger t,
unitref u,
string inWeapon,
);
# 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/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zhybrid02.sc2map/MapScript.galaxy:4321
void gt_HybridAttack_Init () {
gt_HybridAttack = TriggerCreate("gt_HybridAttack_Func");
TriggerAddEventUnitAttacked2(gt_HybridAttack, null, "ZHybrid");
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[1]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[2]"), null);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zhybrid02.sc2map/MapScript.galaxy:4322
gt_HybridAttack = TriggerCreate("gt_HybridAttack_Func");
TriggerAddEventUnitAttacked2(gt_HybridAttack, null, "ZHybrid");
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[1]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[2]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[3]"), null);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zhybrid02.sc2map/MapScript.galaxy:4323
TriggerAddEventUnitAttacked2(gt_HybridAttack, null, "ZHybrid");
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[1]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[2]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[3]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[4]"), null);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zhybrid02.sc2map/MapScript.galaxy:4324
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[1]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[2]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[3]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[4]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[5]"), null);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zhybrid02.sc2map/MapScript.galaxy:4325
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[2]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[3]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[4]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[5]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[6]"), null);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zhybrid02.sc2map/MapScript.galaxy:4326
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[3]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[4]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[5]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[6]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[7]"), null);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zhybrid02.sc2map/MapScript.galaxy:4327
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[4]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[5]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[6]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[7]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[8]"), null);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zhybrid02.sc2map/MapScript.galaxy:4328
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[5]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[6]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[7]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[8]"), null);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zhybrid02.sc2map/MapScript.galaxy:4329
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[6]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[7]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[8]"), null);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2map/MapScript.galaxy:2928
gt_DestroyPylon1Reticle = TriggerCreate("gt_DestroyPylon1Reticle_Func");
TriggerEnable(gt_DestroyPylon1Reticle, false);
TriggerAddEventUnitAttacked2(gt_DestroyPylon1Reticle, UnitRefFromUnit(UnitFromId(1593)), null);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2map/MapScript.galaxy:2965
gt_DestroyPylon2Reticle = TriggerCreate("gt_DestroyPylon2Reticle_Func");
TriggerEnable(gt_DestroyPylon2Reticle, false);
TriggerAddEventUnitAttacked2(gt_DestroyPylon2Reticle, UnitRefFromUnit(UnitFromId(1594)), null);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid02.sc2map — MapScript.galaxy:4321
void gt_HybridAttack_Init () {
gt_HybridAttack = TriggerCreate("gt_HybridAttack_Func");
TriggerAddEventUnitAttacked2(gt_HybridAttack, null, "ZHybrid");
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[1]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[2]"), null);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid02.sc2map — MapScript.galaxy:4322
gt_HybridAttack = TriggerCreate("gt_HybridAttack_Func");
TriggerAddEventUnitAttacked2(gt_HybridAttack, null, "ZHybrid");
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[1]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[2]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[3]"), null);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid02.sc2map — MapScript.galaxy:4323
TriggerAddEventUnitAttacked2(gt_HybridAttack, null, "ZHybrid");
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[1]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[2]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[3]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[4]"), null);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid02.sc2map — MapScript.galaxy:4324
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[1]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[2]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[3]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[4]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[5]"), null);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid02.sc2map — MapScript.galaxy:4325
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[2]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[3]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[4]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[5]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[6]"), null);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid02.sc2map — MapScript.galaxy:4326
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[3]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[4]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[5]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[6]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[7]"), null);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid02.sc2map — MapScript.galaxy:4327
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[4]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[5]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[6]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[7]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[8]"), null);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid02.sc2map — MapScript.galaxy:4328
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[5]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[6]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[7]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[8]"), null);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid02.sc2map — MapScript.galaxy:4329
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[6]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[7]"), null);
TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[8]"), null);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2map — MapScript.galaxy:2928
gt_DestroyPylon1Reticle = TriggerCreate("gt_DestroyPylon1Reticle_Func");
TriggerEnable(gt_DestroyPylon1Reticle, false);
TriggerAddEventUnitAttacked2(gt_DestroyPylon1Reticle, UnitRefFromUnit(UnitFromId(1593)), null);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2map — MapScript.galaxy:2965
gt_DestroyPylon2Reticle = TriggerCreate("gt_DestroyPylon2Reticle_Func");
TriggerEnable(gt_DestroyPylon2Reticle, false);
TriggerAddEventUnitAttacked2(gt_DestroyPylon2Reticle, UnitRefFromUnit(UnitFromId(1594)), null);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/ppurifier03.sc2map/MapScript.galaxy:2992
void gt_TransmissionCoreMatrixAttackedQ_Init () {
gt_TransmissionCoreMatrixAttackedQ = TriggerCreate("gt_TransmissionCoreMatrixAttackedQ_Func");
TriggerAddEventUnitAttacked2(gt_TransmissionCoreMatrixAttackedQ, UnitRefFromVariable("gv_purifierCoreMatrix"), null);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ppurifier03.sc2map — MapScript.galaxy:2992
void gt_TransmissionCoreMatrixAttackedQ_Init () {
gt_TransmissionCoreMatrixAttackedQ = TriggerCreate("gt_TransmissionCoreMatrixAttackedQ_Func");
TriggerAddEventUnitAttacked2(gt_TransmissionCoreMatrixAttackedQ, UnitRefFromVariable("gv_purifierCoreMatrix"), null);
}
mods/heroesbrawlmods/arenamodemods/templearena.stormmod — base.stormdata/LibAMCT.galaxy:2052
libAMCT_gt_ARMSkyTempleTempleAttacks = TriggerCreate("libAMCT_gt_ARMSkyTempleTempleAttacks_Func");
TriggerEnable(libAMCT_gt_ARMSkyTempleTempleAttacks, false);
TriggerAddEventUnitAttacked2(libAMCT_gt_ARMSkyTempleTempleAttacks, null, "LuxoriaTempleStage1Weapon");
}
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.stormdata/LibPEB1.galaxy:6213
void libPEB1_gt_ZagaraHunterKillerTransfusion_Init () {
libPEB1_gt_ZagaraHunterKillerTransfusion = TriggerCreate("libPEB1_gt_ZagaraHunterKillerTransfusion_Func");
TriggerAddEventUnitAttacked2(libPEB1_gt_ZagaraHunterKillerTransfusion, null, "ZagaraHydraliskMelee");
TriggerAddEventUnitAttacked2(libPEB1_gt_ZagaraHunterKillerTransfusion, null, "ZagaraHydraliskRanged");
TriggerAddEventUnitAttacked2(libPEB1_gt_ZagaraHunterKillerTransfusion, null, "ZagaraMutaliskWeapon");
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.stormdata/LibPEB1.galaxy:6214
libPEB1_gt_ZagaraHunterKillerTransfusion = TriggerCreate("libPEB1_gt_ZagaraHunterKillerTransfusion_Func");
TriggerAddEventUnitAttacked2(libPEB1_gt_ZagaraHunterKillerTransfusion, null, "ZagaraHydraliskMelee");
TriggerAddEventUnitAttacked2(libPEB1_gt_ZagaraHunterKillerTransfusion, null, "ZagaraHydraliskRanged");
TriggerAddEventUnitAttacked2(libPEB1_gt_ZagaraHunterKillerTransfusion, null, "ZagaraMutaliskWeapon");
}
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.stormdata/LibPEB1.galaxy:6215
TriggerAddEventUnitAttacked2(libPEB1_gt_ZagaraHunterKillerTransfusion, null, "ZagaraHydraliskMelee");
TriggerAddEventUnitAttacked2(libPEB1_gt_ZagaraHunterKillerTransfusion, null, "ZagaraHydraliskRanged");
TriggerAddEventUnitAttacked2(libPEB1_gt_ZagaraHunterKillerTransfusion, null, "ZagaraMutaliskWeapon");
}
mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod — base.stormdata/LibPEB1.galaxy:4835
void libPEB1_gt_ZagaraHunterKillerTransfusion_Init () {
libPEB1_gt_ZagaraHunterKillerTransfusion = TriggerCreate("libPEB1_gt_ZagaraHunterKillerTransfusion_Func");
TriggerAddEventUnitAttacked2(libPEB1_gt_ZagaraHunterKillerTransfusion, null, "ZagaraHydraliskMelee");
TriggerAddEventUnitAttacked2(libPEB1_gt_ZagaraHunterKillerTransfusion, null, "ZagaraHydraliskRanged");
TriggerAddEventUnitAttacked2(libPEB1_gt_ZagaraHunterKillerTransfusion, null, "ZagaraMutaliskWeapon");
mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod — base.stormdata/LibPEB1.galaxy:4836
libPEB1_gt_ZagaraHunterKillerTransfusion = TriggerCreate("libPEB1_gt_ZagaraHunterKillerTransfusion_Func");
TriggerAddEventUnitAttacked2(libPEB1_gt_ZagaraHunterKillerTransfusion, null, "ZagaraHydraliskMelee");
TriggerAddEventUnitAttacked2(libPEB1_gt_ZagaraHunterKillerTransfusion, null, "ZagaraHydraliskRanged");
TriggerAddEventUnitAttacked2(libPEB1_gt_ZagaraHunterKillerTransfusion, null, "ZagaraMutaliskWeapon");
}
mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod — base.stormdata/LibPEB1.galaxy:4837
TriggerAddEventUnitAttacked2(libPEB1_gt_ZagaraHunterKillerTransfusion, null, "ZagaraHydraliskMelee");
TriggerAddEventUnitAttacked2(libPEB1_gt_ZagaraHunterKillerTransfusion, null, "ZagaraHydraliskRanged");
TriggerAddEventUnitAttacked2(libPEB1_gt_ZagaraHunterKillerTransfusion, null, "ZagaraMutaliskWeapon");
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:25650
libGDHL_gt_HeroZagaraHunterKillerHydraliskTransfusion = TriggerCreate("libGDHL_gt_HeroZagaraHunterKillerHydraliskTransfusion_Func");
TriggerEnable(libGDHL_gt_HeroZagaraHunterKillerHydraliskTransfusion, false);
TriggerAddEventUnitAttacked2(libGDHL_gt_HeroZagaraHunterKillerHydraliskTransfusion, null, "ZagaraHydraliskMelee");
TriggerAddEventUnitAttacked2(libGDHL_gt_HeroZagaraHunterKillerHydraliskTransfusion, null, "ZagaraHydraliskRanged");
TriggerAddEventUnitAttacked2(libGDHL_gt_HeroZagaraHunterKillerHydraliskTransfusion, null, "ZagaraMutaliskWeapon");
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:25651
TriggerEnable(libGDHL_gt_HeroZagaraHunterKillerHydraliskTransfusion, false);
TriggerAddEventUnitAttacked2(libGDHL_gt_HeroZagaraHunterKillerHydraliskTransfusion, null, "ZagaraHydraliskMelee");
TriggerAddEventUnitAttacked2(libGDHL_gt_HeroZagaraHunterKillerHydraliskTransfusion, null, "ZagaraHydraliskRanged");
TriggerAddEventUnitAttacked2(libGDHL_gt_HeroZagaraHunterKillerHydraliskTransfusion, null, "ZagaraMutaliskWeapon");
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:25652
TriggerAddEventUnitAttacked2(libGDHL_gt_HeroZagaraHunterKillerHydraliskTransfusion, null, "ZagaraHydraliskMelee");
TriggerAddEventUnitAttacked2(libGDHL_gt_HeroZagaraHunterKillerHydraliskTransfusion, null, "ZagaraHydraliskRanged");
TriggerAddEventUnitAttacked2(libGDHL_gt_HeroZagaraHunterKillerHydraliskTransfusion, null, "ZagaraMutaliskWeapon");
}
mods/heroesmapmods/battlegroundmapmods/blackheartsbay.stormmod — base.stormdata/LibBBAY.galaxy:2082
libBBAY_gt_MMBBCannonballsTreasureChestAttacked = TriggerCreate("libBBAY_gt_MMBBCannonballsTreasureChestAttacked_Func");
TriggerEnable(libBBAY_gt_MMBBCannonballsTreasureChestAttacked, false);
TriggerAddEventUnitAttacked2(libBBAY_gt_MMBBCannonballsTreasureChestAttacked, UnitRefFromVariable("libBBAY_gv_mMBBCannonballsTreasureChestChests[1]"), null);
TriggerAddEventUnitAttacked2(libBBAY_gt_MMBBCannonballsTreasureChestAttacked, UnitRefFromVariable("libBBAY_gv_mMBBCannonballsTreasureChestChests[2]"), null);
}
mods/heroesmapmods/battlegroundmapmods/blackheartsbay.stormmod — base.stormdata/LibBBAY.galaxy:2083
TriggerEnable(libBBAY_gt_MMBBCannonballsTreasureChestAttacked, false);
TriggerAddEventUnitAttacked2(libBBAY_gt_MMBBCannonballsTreasureChestAttacked, UnitRefFromVariable("libBBAY_gv_mMBBCannonballsTreasureChestChests[1]"), null);
TriggerAddEventUnitAttacked2(libBBAY_gt_MMBBCannonballsTreasureChestAttacked, UnitRefFromVariable("libBBAY_gv_mMBBCannonballsTreasureChestChests[2]"), null);
}
mods/heromods/samuro.stormmod — base.stormdata/LibHSAM.galaxy:1329
libHSAM_gt_SamuroMirrorImageAttackOrderRedirectAI = TriggerCreate("libHSAM_gt_SamuroMirrorImageAttackOrderRedirectAI_Func");
TriggerEnable(libHSAM_gt_SamuroMirrorImageAttackOrderRedirectAI, false);
TriggerAddEventUnitAttacked2(libHSAM_gt_SamuroMirrorImageAttackOrderRedirectAI, null, "SamuroWeapon");
}
mods/novastoryassets.sc2mod — base.sc2maps/maps/campaign/nova/nova03.sc2map/MapScript.galaxy:5274
gt_S2NovaKillsAnotherinSwordTutorialRoomTransmissionQ = TriggerCreate("gt_S2NovaKillsAnotherinSwordTutorialRoomTransmissionQ_Func");
TriggerEnable(gt_S2NovaKillsAnotherinSwordTutorialRoomTransmissionQ, false);
TriggerAddEventUnitAttacked2(gt_S2NovaKillsAnotherinSwordTutorialRoomTransmissionQ, null, "NovaWeaponPsiBlade");
}
mods/novastoryassets.sc2mod — base2.sc2maps/maps/campaign/nova/nova05.sc2map/MapScript.galaxy:4636
void gt_FoundTheMinersViaAttackQ_Init () {
gt_FoundTheMinersViaAttackQ = TriggerCreate("gt_FoundTheMinersViaAttackQ_Func");
TriggerAddEventUnitAttacked2(gt_FoundTheMinersViaAttackQ, null, null);
}
mods/novastoryassets.sc2mod — base2.sc2maps/maps/campaign/nova/nova05.sc2map/MapScript.galaxy:5058
void gt_BansheeRunQ_Init () {
gt_BansheeRunQ = TriggerCreate("gt_BansheeRunQ_Func");
TriggerAddEventUnitAttacked2(gt_BansheeRunQ, null, null);
}
mods/novastoryassets.sc2mod — base2.sc2maps/maps/campaign/nova/nova05.sc2map/MapScript.galaxy:5883
void gt_TerrazineTankAttackedWarningQ_Init () {
gt_TerrazineTankAttackedWarningQ = TriggerCreate("gt_TerrazineTankAttackedWarningQ_Func");
TriggerAddEventUnitAttacked2(gt_TerrazineTankAttackedWarningQ, null, null);
}
mods/novastoryassets.sc2mod — base2.sc2maps/maps/campaign/nova/nova05.sc2map/MapScript.galaxy:5976
void gt_TerrazineTankLowLifeWarningQ_Init () {
gt_TerrazineTankLowLifeWarningQ = TriggerCreate("gt_TerrazineTankLowLifeWarningQ_Func");
TriggerAddEventUnitAttacked2(gt_TerrazineTankLowLifeWarningQ, null, null);
}
mods/novastoryassets.sc2mod — base3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:2540
void gt_NovaAttacksDOMUnitInDefendRegion_Init () {
gt_NovaAttacksDOMUnitInDefendRegion = TriggerCreate("gt_NovaAttacksDOMUnitInDefendRegion_Func");
TriggerAddEventUnitAttacked2(gt_NovaAttacksDOMUnitInDefendRegion, null, null);
}
mods/novastoryassets.sc2mod — base3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:3491
void gt_DominatedUnitAttacks_Init () {
gt_DominatedUnitAttacks = TriggerCreate("gt_DominatedUnitAttacks_Func");
TriggerAddEventUnitAttacked2(gt_DominatedUnitAttacks, null, null);
}
mods/novastoryassets.sc2mod — base3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:3643
void gt_NovaAttackedWhileHavingHarmlessDominatedBuddy_Init () {
gt_NovaAttackedWhileHavingHarmlessDominatedBuddy = TriggerCreate("gt_NovaAttackedWhileHavingHarmlessDominatedBuddy_Func");
TriggerAddEventUnitAttacked2(gt_NovaAttackedWhileHavingHarmlessDominatedBuddy, null, null);
}
mods/novastoryassets.sc2mod — base3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:4310
void gt_S1CombatInDefendRegionsController_Init () {
gt_S1CombatInDefendRegionsController = TriggerCreate("gt_S1CombatInDefendRegionsController_Func");
TriggerAddEventUnitAttacked2(gt_S1CombatInDefendRegionsController, null, null);
TriggerAddEventUnitDamaged(gt_S1CombatInDefendRegionsController, null, c_unitDamageTypeAny, c_unitDamageEither, null);
TriggerAddEventUnitStartedAttack2(gt_S1CombatInDefendRegionsController, null, null);
mods/novastoryassets.sc2mod — base3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:6247
void gt_S2CombatInDefendRegionsController_Init () {
gt_S2CombatInDefendRegionsController = TriggerCreate("gt_S2CombatInDefendRegionsController_Func");
TriggerAddEventUnitAttacked2(gt_S2CombatInDefendRegionsController, null, null);
TriggerAddEventUnitDamaged(gt_S2CombatInDefendRegionsController, null, c_unitDamageTypeAny, c_unitDamageEither, null);
TriggerAddEventUnitStartedAttack2(gt_S2CombatInDefendRegionsController, null, null);
mods/novastoryassets.sc2mod — base3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:6591
gt_S2RemoveSonarDroneReticles = TriggerCreate("gt_S2RemoveSonarDroneReticles_Func");
TriggerAddEventUnitDied(gt_S2RemoveSonarDroneReticles, null);
TriggerAddEventUnitAttacked2(gt_S2RemoveSonarDroneReticles, null, null);
TriggerAddEventUnitDamaged(gt_S2RemoveSonarDroneReticles, null, c_unitDamageTypeAny, c_unitDamageEither, null);
TriggerAddEventUnitBehaviorChange(gt_S2RemoveSonarDroneReticles, null, "FlashBangGrenade", c_unitBehaviorChangeAny);
mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova03.sc2map — MapScript.galaxy:5274
gt_S2NovaKillsAnotherinSwordTutorialRoomTransmissionQ = TriggerCreate("gt_S2NovaKillsAnotherinSwordTutorialRoomTransmissionQ_Func");
TriggerEnable(gt_S2NovaKillsAnotherinSwordTutorialRoomTransmissionQ, false);
TriggerAddEventUnitAttacked2(gt_S2NovaKillsAnotherinSwordTutorialRoomTransmissionQ, null, "NovaWeaponPsiBlade");
}
mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova05.sc2map — MapScript.galaxy:4636
void gt_FoundTheMinersViaAttackQ_Init () {
gt_FoundTheMinersViaAttackQ = TriggerCreate("gt_FoundTheMinersViaAttackQ_Func");
TriggerAddEventUnitAttacked2(gt_FoundTheMinersViaAttackQ, null, null);
}
mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova05.sc2map — MapScript.galaxy:5058
void gt_BansheeRunQ_Init () {
gt_BansheeRunQ = TriggerCreate("gt_BansheeRunQ_Func");
TriggerAddEventUnitAttacked2(gt_BansheeRunQ, null, null);
}
mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova05.sc2map — MapScript.galaxy:5883
void gt_TerrazineTankAttackedWarningQ_Init () {
gt_TerrazineTankAttackedWarningQ = TriggerCreate("gt_TerrazineTankAttackedWarningQ_Func");
TriggerAddEventUnitAttacked2(gt_TerrazineTankAttackedWarningQ, null, null);
}
mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova05.sc2map — MapScript.galaxy:5976
void gt_TerrazineTankLowLifeWarningQ_Init () {
gt_TerrazineTankLowLifeWarningQ = TriggerCreate("gt_TerrazineTankLowLifeWarningQ_Func");
TriggerAddEventUnitAttacked2(gt_TerrazineTankLowLifeWarningQ, null, null);
}
mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova07.sc2map — MapScript.galaxy:2540
void gt_NovaAttacksDOMUnitInDefendRegion_Init () {
gt_NovaAttacksDOMUnitInDefendRegion = TriggerCreate("gt_NovaAttacksDOMUnitInDefendRegion_Func");
TriggerAddEventUnitAttacked2(gt_NovaAttacksDOMUnitInDefendRegion, null, null);
}
mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova07.sc2map — MapScript.galaxy:3491
void gt_DominatedUnitAttacks_Init () {
gt_DominatedUnitAttacks = TriggerCreate("gt_DominatedUnitAttacks_Func");
TriggerAddEventUnitAttacked2(gt_DominatedUnitAttacks, null, null);
}
mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova07.sc2map — MapScript.galaxy:3643
void gt_NovaAttackedWhileHavingHarmlessDominatedBuddy_Init () {
gt_NovaAttackedWhileHavingHarmlessDominatedBuddy = TriggerCreate("gt_NovaAttackedWhileHavingHarmlessDominatedBuddy_Func");
TriggerAddEventUnitAttacked2(gt_NovaAttackedWhileHavingHarmlessDominatedBuddy, null, null);
}
mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova07.sc2map — MapScript.galaxy:4310
void gt_S1CombatInDefendRegionsController_Init () {
gt_S1CombatInDefendRegionsController = TriggerCreate("gt_S1CombatInDefendRegionsController_Func");
TriggerAddEventUnitAttacked2(gt_S1CombatInDefendRegionsController, null, null);
TriggerAddEventUnitDamaged(gt_S1CombatInDefendRegionsController, null, c_unitDamageTypeAny, c_unitDamageEither, null);
TriggerAddEventUnitStartedAttack2(gt_S1CombatInDefendRegionsController, null, null);
mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova07.sc2map — MapScript.galaxy:6247
void gt_S2CombatInDefendRegionsController_Init () {
gt_S2CombatInDefendRegionsController = TriggerCreate("gt_S2CombatInDefendRegionsController_Func");
TriggerAddEventUnitAttacked2(gt_S2CombatInDefendRegionsController, null, null);
TriggerAddEventUnitDamaged(gt_S2CombatInDefendRegionsController, null, c_unitDamageTypeAny, c_unitDamageEither, null);
TriggerAddEventUnitStartedAttack2(gt_S2CombatInDefendRegionsController, null, null);
mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova07.sc2map — MapScript.galaxy:6591
gt_S2RemoveSonarDroneReticles = TriggerCreate("gt_S2RemoveSonarDroneReticles_Func");
TriggerAddEventUnitDied(gt_S2RemoveSonarDroneReticles, null);
TriggerAddEventUnitAttacked2(gt_S2RemoveSonarDroneReticles, null, null);
TriggerAddEventUnitDamaged(gt_S2RemoveSonarDroneReticles, null, c_unitDamageTypeAny, c_unitDamageEither, null);
TriggerAddEventUnitBehaviorChange(gt_S2RemoveSonarDroneReticles, null, "FlashBangGrenade", c_unitBehaviorChangeAny);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:33151
libCOMI_gt_CM_VOEnemySpotted = TriggerCreate("libCOMI_gt_CM_VOEnemySpotted_Func");
TriggerEnable(libCOMI_gt_CM_VOEnemySpotted, false);
TriggerAddEventUnitAttacked2(libCOMI_gt_CM_VOEnemySpotted, null, null);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:33272
libCOMI_gt_CM_VOEnemyCloakedSpotted = TriggerCreate("libCOMI_gt_CM_VOEnemyCloakedSpotted_Func");
TriggerEnable(libCOMI_gt_CM_VOEnemyCloakedSpotted, false);
TriggerAddEventUnitAttacked2(libCOMI_gt_CM_VOEnemyCloakedSpotted, null, null);
}