# Revive Unit

Grammar — Revive u
FlagsNative | Action

Revives the specified unit.

# Arguments

  • unit — Unit

Returns — void

native void UnitRevive(unit inUnit);

Category: Unit / Basic

# Examples

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pcampaigntest.sc2map/MapScript.galaxy:347

        }
        else {
            UnitRevive(lv_hybrid);
            if ((UnitIsAlive(lv_hybrid) == false)) {
                UnitCreate(1, "HybridReaver", 0, gv_pLAYER_02_DOMINION, UnitGetPosition(lp_phylactery), 270.0);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pcampaigntest.sc2mapMapScript.galaxy:347

        }
        else {
            UnitRevive(lv_hybrid);
            if ((UnitIsAlive(lv_hybrid) == false)) {
                UnitCreate(1, "HybridReaver", 0, gv_pLAYER_02_DOMINION, UnitGetPosition(lp_phylactery), 270.0);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:1837

    UnitBehaviorRemove(lp_viking, "DeadMechanics", 1);
    UnitBehaviorRemove(lp_viking, "LostVikingsVikingDowned", 1);
    UnitRevive(lp_viking);
    UnitSetPropertyFixed(lp_viking, c_unitPropLifePercent, 100.0);
    libNtve_gf_SendActorMessageToUnit(lp_viking, "Signal Respawn");

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:6841

    UnitBehaviorRemove(lv_heroUnit, "Dead", 1);
    UnitBehaviorRemove(lv_heroUnit, "DeadMechanics", 1);
    UnitRevive(lv_heroUnit);
    UnitSetState(lv_heroUnit, c_unitStateStatusBar, true);
    UnitSetPropertyFixed(lv_heroUnit, c_unitPropLifePercent, lp_reSpawnHealthPercent);

mods/heromods/dva.stormmodbase.stormdata/LibHDVA.galaxy:310

    UnitBehaviorRemove(lv_dVaPilotUnit, "DeadMechanics", 1);
    UnitBehaviorRemove(lv_dVaMechUnit, "HeroGenericMapMechanicPickupDisallowed", 1);
    UnitRevive(lv_dVaPilotUnit);
    libNtve_gf_ShowHideUnit(lv_dVaPilotUnit, true);
    UnitPutInTransport(lv_dVaPilotUnit, lv_dVaMechUnit);

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCMI.galaxy:2567

        }

        UnitRevive(libNCMI_gv_nM_HeroRevivingUnit[(lv_heroType)]);
        autoEC0FE33E_val = lv_heroType;
        if (autoEC0FE33E_val == libNCMI_ge_NM_HeroType_NM_HeroType_Nova) {

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:8121

    Wait(0.125, c_timeGame);
    if ((UnitIsAlive(libCOMI_gv_cM_HeroUnit[lp_player]) == false)) {
        UnitRevive(libCOMI_gv_cM_HeroUnit[lp_player]);
        UnitCreateEffectUnit(libCOMI_gv_cM_HeroUnit[lp_player], libCOMI_gv_cM_HeroReviveHealEffect, libCOMI_gv_cM_HeroUnit[lp_player]);
        if ((RegionContainsPoint(RegionPlayableMap(), lv_reviveFallbackPoint) == true)) {

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:25271


    libNtve_gf_PlayerRemoveCooldown(lv_p, libCOOC_gf_CC_CommanderHeroReviveLink(libCOOC_gf_ActiveCommanderForPlayer(lv_p)));
    UnitRevive(libCOMI_gv_cM_HeroUnit[lv_p]);
    UnitSetPropertyFixed(libCOMI_gv_cM_HeroUnit[lv_p], c_unitPropLifePercent, 100.0);
    UnitCreateEffectPoint(libCOMI_gv_cM_HeroUnit[lv_p], libCOMI_gv_cM_Tychus_OdinSummonEffect_Called, EventPlayerEffectUsedPoint(c_effectLocationTargetPoint));

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:26068

    if ((UnitIsValid(lv_reviveTarget) == true)) {
        UnitSetPosition(lv_reviveTarget, UnitGetPosition(lv_fakeUnit), false);
        UnitRevive(lv_reviveTarget);
        UnitSetPropertyFixed(lv_reviveTarget, c_unitPropLifePercent, 100.0);
    }