# Unit Is Revived
Grammar — u is revived
Flags —Native
|Event
This event fires when a unit is revived. Use “Triggering Unit” to get the unit that was revived.
# Arguments
unitref
<unit> — Unit
Returns — void
native void TriggerAddEventUnitRevive(
trigger t,
unitref u,
);
# Event parameters
- Triggering Unit — EventUnit
# 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/zkorhal02.sc2map/MapScript.galaxy:4200
void gt_RespawnDehakaReinforcements_Init () {
gt_RespawnDehakaReinforcements = TriggerCreate("gt_RespawnDehakaReinforcements_Func");
TriggerAddEventUnitRevive(gt_RespawnDehakaReinforcements, UnitRefFromVariable("gv_dEHAKA"));
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal02.sc2map — MapScript.galaxy:4200
void gt_RespawnDehakaReinforcements_Init () {
gt_RespawnDehakaReinforcements = TriggerCreate("gt_RespawnDehakaReinforcements_Func");
TriggerAddEventUnitRevive(gt_RespawnDehakaReinforcements, UnitRefFromVariable("gv_dEHAKA"));
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/sc2epilogue01.sc2map/MapScript.galaxy:4832
void gt_StukovRevivesAfterCooldown_Init () {
gt_StukovRevivesAfterCooldown = TriggerCreate("gt_StukovRevivesAfterCooldown_Func");
TriggerAddEventUnitRevive(gt_StukovRevivesAfterCooldown, UnitRefFromVariable("gv_stukov"));
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/sc2epilogue01.sc2map/MapScript.galaxy:5052
void gt_KerriganRevivesAfterCooldown_Init () {
gt_KerriganRevivesAfterCooldown = TriggerCreate("gt_KerriganRevivesAfterCooldown_Func");
TriggerAddEventUnitRevive(gt_KerriganRevivesAfterCooldown, UnitRefFromVariable("gv_kerrigan"));
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue01.sc2map — MapScript.galaxy:4832
void gt_StukovRevivesAfterCooldown_Init () {
gt_StukovRevivesAfterCooldown = TriggerCreate("gt_StukovRevivesAfterCooldown_Func");
TriggerAddEventUnitRevive(gt_StukovRevivesAfterCooldown, UnitRefFromVariable("gv_stukov"));
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue01.sc2map — MapScript.galaxy:5052
void gt_KerriganRevivesAfterCooldown_Init () {
gt_KerriganRevivesAfterCooldown = TriggerCreate("gt_KerriganRevivesAfterCooldown_Func");
TriggerAddEventUnitRevive(gt_KerriganRevivesAfterCooldown, UnitRefFromVariable("gv_kerrigan"));
}
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.stormdata/LibPEB1.galaxy:6054
void libPEB1_gt_MurkyRevive_Init () {
libPEB1_gt_MurkyRevive = TriggerCreate("libPEB1_gt_MurkyRevive_Func");
TriggerAddEventUnitRevive(libPEB1_gt_MurkyRevive, null);
}
mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod — base.stormdata/LibPEB1.galaxy:11687
void libPEB1_gt_HeroRevived_Init () {
libPEB1_gt_HeroRevived = TriggerCreate("libPEB1_gt_HeroRevived_Func");
TriggerAddEventUnitRevive(libPEB1_gt_HeroRevived, null);
}
mods/heroesmapmods/battlegroundmapmods/blackheartsbay.stormmod — base.stormdata/LibBBAY.galaxy:1319
libBBAY_gt_MMBBCannonballsHeroRespawns = TriggerCreate("libBBAY_gt_MMBBCannonballsHeroRespawns_Func");
TriggerEnable(libBBAY_gt_MMBBCannonballsHeroRespawns, false);
TriggerAddEventUnitRevive(libBBAY_gt_MMBBCannonballsHeroRespawns, null);
}
mods/heromods/tracer.stormmod — base.stormdata/LibTrac.galaxy:1311
libTrac_gt_HeroTracerUpdateRecallPointsonRevive = TriggerCreate("libTrac_gt_HeroTracerUpdateRecallPointsonRevive_Func");
TriggerEnable(libTrac_gt_HeroTracerUpdateRecallPointsonRevive, false);
TriggerAddEventUnitRevive(libTrac_gt_HeroTracerUpdateRecallPointsonRevive, null);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:20870
libCOMI_gt_CM_KaraxUnitReviveBarrier = TriggerCreate("libCOMI_gt_CM_KaraxUnitReviveBarrier_Func");
TriggerEnable(libCOMI_gt_CM_KaraxUnitReviveBarrier, false);
TriggerAddEventUnitRevive(libCOMI_gt_CM_KaraxUnitReviveBarrier, null);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:30554
void libCOMI_gt_CM_HeroReviveQueue_HeroRevived_Init () {
libCOMI_gt_CM_HeroReviveQueue_HeroRevived = TriggerCreate("libCOMI_gt_CM_HeroReviveQueue_HeroRevived_Func");
TriggerAddEventUnitRevive(libCOMI_gt_CM_HeroReviveQueue_HeroRevived, null);
}