# Remove Cooldown For Player

Grammar — Clear remaining time on cooldown inCooldown for player inPlayer
FlagsAction

Clears the specified player cooldown link.

# Arguments

  • int — Player
  • string — Cooldown

Returns — void

void libNtve_gf_PlayerRemoveCooldown(
	int lp_inPlayer,
	string lp_inCooldown,
);

Category: Player / Charges And Cooldowns

# Examples

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:11166

        libSwaC_gf_DisplayCampaignMessage(PlayerGroupAll(), libSwaC_ge_CampaignMessageType_Warning, TextExpressionAssemble("Param/Expression/lib_SwaC_03598A41"), libSwaC_ge_CampaignMessageFormatNotFormat_FormatMessage);
    }
    libNtve_gf_PlayerRemoveCooldown(1, libSwaC_gv_zSC_HeroReviveLinkKerrigan);
    UserDataSetInt("KerriganStates", "Alive", "Value", 1, 0);
    UserDataSetInt("KerriganStates", "Dead", "Value", 1, 1);

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:11191

        }

        libNtve_gf_PlayerRemoveCooldown(1, libSwaC_gv_zSC_HeroReviveLinkKerrigan);
        PlayerAddCooldown(1, libSwaC_gv_zSC_HeroReviveLinkKerrigan, libSwaC_gv_zS_ReviveCooldownTimeKerrigan);
        TriggerEnable(libSwaC_gt_ZS_ReviveCooldownReadyKerrigan, true);

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:11215

        libSwaC_gf_DisplayCampaignMessage(PlayerGroupAll(), libSwaC_ge_CampaignMessageType_Warning, TextExpressionAssemble("Param/Expression/lib_SwaC_6AF122B7"), libSwaC_ge_CampaignMessageFormatNotFormat_FormatMessage);
    }
    libNtve_gf_PlayerRemoveCooldown(1, libSwaC_gv_zSC_HeroReviveLinkStukov);
    Wait(6.6, c_timeGame);
    while (((libSwaC_gv_zS_PrimaryHatchery == null) || (UnitIsAlive(libSwaC_gv_zS_PrimaryHatchery) == false))) {

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:11225

    UnitIssueOrder(libSwaC_gv_zS_HeroReviverStukov, OrderTargetingUnit(AbilityCommand("RallyHatchery", 1), libSwaC_gv_zS_HeroReviverStukov), c_orderQueueReplace);
    UnitSetPosition(libSwaC_gv_zS_Stukov, UnitGetPosition(libSwaC_gv_zS_HeroReviverStukov), false);
    libNtve_gf_PlayerRemoveCooldown(1, libSwaC_gv_zSC_HeroReviveLinkStukov);
    PlayerAddCooldown(1, libSwaC_gv_zSC_HeroReviveLinkStukov, libSwaC_gv_zS_ReviveCooldownTimeStukov);
    TriggerEnable(libSwaC_gt_ZS_ReviveCooldownReadyStukov, true);

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:11235

    TextExpressionSetToken("Param/Expression/lib_SwaC_788B7D47", "Time", IntToText(FixedToInt(libSwaC_gv_zS_ReviveCooldownTimeDehaka)));
    libSwaC_gf_DisplayCampaignMessage(PlayerGroupAll(), libSwaC_ge_CampaignMessageType_Warning, TextExpressionAssemble("Param/Expression/lib_SwaC_788B7D47"), libSwaC_ge_CampaignMessageFormatNotFormat_FormatMessage);
    libNtve_gf_PlayerRemoveCooldown(1, libSwaC_gv_zSC_HeroReviveLinkDehaka);
    Wait(1.7, c_timeGame);
    if ((UnitIsAlive(libSwaC_gv_zS_Dehaka) == false)) {

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:11241

        libSwaC_gv_zS_HeroReviverDehaka = UnitLastCreated();
        UnitSetPosition(libSwaC_gv_zS_Dehaka, UnitGetPosition(libSwaC_gv_zS_HeroReviverDehaka), false);
        libNtve_gf_PlayerRemoveCooldown(1, libSwaC_gv_zSC_HeroReviveLinkDehaka);
        PlayerAddCooldown(1, libSwaC_gv_zSC_HeroReviveLinkDehaka, libSwaC_gv_zS_ReviveCooldownTimeDehaka);
        TriggerEnable(libSwaC_gt_ZS_ReviveCooldownReadyDehaka, true);

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:11292

        if ((UnitIsAlive(libSwaC_gv_zS_HeroReviverKerrigan) == true)) {
            ActorSend(libSwaC_gv_zS_KerriganActor, "Destroy");
            libNtve_gf_PlayerRemoveCooldown(1, libSwaC_gv_zSC_HeroReviveLinkKerrigan);
            UnitIssueOrder(libSwaC_gv_zS_HeroReviverKerrigan, libNtve_gf_ReviveOrderWithNoTarget(AbilityCommand("KerriganRevive", 0), libSwaC_gv_zS_Kerrigan), c_orderQueueReplace);
            Wait(0.0625, c_timeGame);

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:11309

        TriggerEnable(libSwaC_gt_ZS_ReviveCooldownReadyDehaka, false);
        if ((UnitIsAlive(libSwaC_gv_zS_HeroReviverDehaka) == true)) {
            libNtve_gf_PlayerRemoveCooldown(1, libSwaC_gv_zSC_HeroReviveLinkDehaka);
            UnitIssueOrder(libSwaC_gv_zS_HeroReviverDehaka, libNtve_gf_ReviveOrderWithNoTarget(AbilityCommand("DehakaRevive", 0), libSwaC_gv_zS_Dehaka), c_orderQueueReplace);
            Wait(0.0625, c_timeGame);

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:11319

        }
        else {
            libNtve_gf_PlayerRemoveCooldown(1, libSwaC_gv_zSC_HeroReviveLinkDehaka);
            libNtve_gf_CreateUnitsWithDefaultFacing(1, "DehakaReviveCocoon", 0, 1, UnitGetPosition(libSwaC_gv_zS_Dehaka));
            libSwaC_gv_zS_HeroReviverDehaka = UnitLastCreated();

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:11331

        TriggerEnable(libSwaC_gt_ZS_ReviveCooldownReadyStukov, false);
        if ((UnitIsAlive(libSwaC_gv_zS_HeroReviverStukov) == true)) {
            libNtve_gf_PlayerRemoveCooldown(1, libSwaC_gv_zSC_HeroReviveLinkStukov);
            UnitIssueOrder(libSwaC_gv_zS_HeroReviverStukov, libNtve_gf_ReviveOrderWithNoTarget(AbilityCommand("StukovRevive", 0), libSwaC_gv_zS_Stukov), c_orderQueueReplace);
            Wait(0.125, c_timeGame);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pulnar03.sc2map/MapScript.galaxy:735

    UnitCreateEffectUnit(UnitFromId(33), "CopyHatcheryRally", gv_kerriganCocoon);
    UnitSetPosition(gv_zeratul, UnitGetPosition(gv_kerriganCocoon), false);
    libNtve_gf_PlayerRemoveCooldown(gv_pLAYER_02_DOMINION5, gv_heroReviveLinkKerrigan);
    PlayerAddCooldown(gv_pLAYER_02_DOMINION5, gv_heroReviveLinkKerrigan, 60.0);
    TriggerEnable(gt_KerriganRevivesAfterCooldown, true);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pulnar03.sc2mapMapScript.galaxy:735

    UnitCreateEffectUnit(UnitFromId(33), "CopyHatcheryRally", gv_kerriganCocoon);
    UnitSetPosition(gv_zeratul, UnitGetPosition(gv_kerriganCocoon), false);
    libNtve_gf_PlayerRemoveCooldown(gv_pLAYER_02_DOMINION5, gv_heroReviveLinkKerrigan);
    PlayerAddCooldown(gv_pLAYER_02_DOMINION5, gv_heroReviveLinkKerrigan, 60.0);
    TriggerEnable(gt_KerriganRevivesAfterCooldown, true);

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:1683

        }

        libNtve_gf_PlayerRemoveCooldown(libVCMI_gv_pM_HeroRevivePlayer[(lv_heroType)], libVCMI_gv_pM_HeroReviveCDLink[(lv_heroType)]);
        PlayerAddCooldown(libVCMI_gv_pM_HeroRevivePlayer[(lv_heroType)], libVCMI_gv_pM_HeroReviveCDLink[(lv_heroType)], lv_reviveCooldown);
    }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:1744

    else {
    }
    libNtve_gf_PlayerRemoveCooldown(libVCMI_gv_pM_HeroRevivePlayer[(lv_heroType)], libVCMI_gv_pM_HeroReviveCDLink[(lv_heroType)]);
    UnitIssueOrder(libVCMI_gv_pM_HeroReviverUnit[(lv_heroType)], libNtve_gf_ReviveOrderWithNoTarget(libVCMI_gv_pM_HeroReviveCommand[(lv_heroType)], libVCMI_gv_pM_HeroRevivingUnit[(lv_heroType)]), c_orderQueueReplace);
    Wait(0.0625, c_timeGame);

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

                lv_cooldownLink = CatalogFieldValueGet(c_gameCatalogAbil, lv_abilLink, "Cost[" + IntToString(0) + "].Cooldown.Link", UnitGetOwner(lv_itUnit));
                libNtve_gf_UnitRemoveCooldown(lv_itUnit, lv_cooldownLink);
                libNtve_gf_PlayerRemoveCooldown(lp_player, lv_cooldownLink);
                lv_chargeLink = CatalogFieldValueGet(c_gameCatalogAbil, lv_abilLink, "Cost[" + IntToString(0) + "].Charge.Link", UnitGetOwner(lv_itUnit));
                lv_chargeCount = CatalogFieldValueGetAsInt(c_gameCatalogAbil, lv_abilLink, "Cost[" + IntToString(0) + "].Charge.CountMax", UnitGetOwner(lv_itUnit));

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

                lv_cooldownLink = CatalogFieldValueGet(c_gameCatalogAbil, lv_abilLink, "Cost[" + IntToString(0) + "].Cooldown.Link", lp_player);
                libNtve_gf_UnitRemoveCooldown(lv_vehicleUnit, lv_cooldownLink);
                libNtve_gf_PlayerRemoveCooldown(lp_player, lv_cooldownLink);
            }
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SupportLib.galaxy:1652

            lv_cooldownLink = CatalogFieldValueGet(c_gameCatalogAbil, lv_abilLink, "Cost[" + IntToString(0) + "].Cooldown.Link", lv_ownerofUnit);
            libNtve_gf_UnitRemoveCooldown(lp_unit, lv_cooldownLink);
            libNtve_gf_PlayerRemoveCooldown(lv_ownerofUnit, lv_cooldownLink);
            lv_chargeLink = CatalogFieldValueGet(c_gameCatalogAbil, lv_abilLink, "Cost[" + IntToString(0) + "].Charge.Link", lv_ownerofUnit);
            UnitAddChargeUsed(lp_unit, lv_chargeLink, -1.0);

mods/heroesmapmods/battlegroundmapmods/towersofdoom.stormmodbase.stormdata/LibMTOD.galaxy:3150

        lv_mountCooldownLink = CatalogFieldValueGet(c_gameCatalogAbil, "Mount", "Cost[" + IntToString(0) + "].Cooldown.Link", lv_player);
        libNtve_gf_UnitRemoveCooldown(lv_hero, lv_mountCooldownLink);
        libNtve_gf_PlayerRemoveCooldown(lv_player, lv_mountCooldownLink);
    }

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

        }

        libNtve_gf_PlayerRemoveCooldown(libNCMI_gv_nM_HeroRevivePlayer[(lv_heroType)], libNCMI_gv_nM_HeroReviveCDLink[(lv_heroType)]);
        PlayerAddCooldown(libNCMI_gv_nM_HeroRevivePlayer[(lv_heroType)], libNCMI_gv_nM_HeroReviveCDLink[(lv_heroType)], lv_reviveCooldown);
        autoE295FE6A_val = lv_heroType;

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

    else {
    }
    libNtve_gf_PlayerRemoveCooldown(libNCMI_gv_nM_HeroRevivePlayer[(lv_heroType)], libNCMI_gv_nM_HeroReviveCDLink[(lv_heroType)]);
    if ((UnitIsAlive(libNCMI_gv_nM_HeroReviverUnit[(lv_heroType)]) == true)) {
        UnitIssueOrder(libNCMI_gv_nM_HeroReviverUnit[(lv_heroType)], libNtve_gf_ReviveOrderWithNoTarget(libNCMI_gv_nM_HeroReviveCommand[(lv_heroType)], libNCMI_gv_nM_HeroRevivingUnit[(lv_heroType)]), c_orderQueueReplace);

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

    lv_placementTarget = UnitTypePlacementFromPoint("FenixDragoon", lp_player, lp_targetPoint, 500.0);
    lv_cooldown = PlayerGetCooldown(lp_player, lv_cooldownLink);
    libNtve_gf_PlayerRemoveCooldown(lp_player, lv_cooldownLink);
    UnitIssueOrder(libCOUI_gv_cU_GPUnit[lp_player], OrderTargetingPoint(lp_cmd, lv_placementTarget), c_orderQueueReplace);
    PlayerAddCooldown(lp_player, lv_cooldownLink, lv_cooldown);

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

    // Implementation
    if ((libCOMI_gv_cM_ZeratulProphecyArtifactNumber > libCOMI_gf_CM_Zeratul_GetArtifactLimit(libCOMI_gv_cM_ZeratulPlayer))) {
        libNtve_gf_PlayerRemoveCooldown(libCOMI_gv_cM_ZeratulPlayer, "Abil/ProphecyVision");
        return ;
    }

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

    lv_cooldownTime = MaxF(lv_cooldownTime, 10.0);
    if ((PlayerGetCooldown(libCOMI_gv_cM_ZeratulPlayer, "Abil/ProphecyVision") < lv_cooldownTime)) {
        libNtve_gf_PlayerRemoveCooldown(libCOMI_gv_cM_ZeratulPlayer, "Abil/ProphecyVision");
        PlayerAddCooldown(libCOMI_gv_cM_ZeratulPlayer, "Abil/ProphecyVision", lv_cooldownTime);
    }

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

            libCOMI_gf_DisplayCampaignMessage(PlayerGroupSingle(lp_player), libCOMI_ge_CampaignMessageType_Warning, libCOMI_gf_CM_HeroNormalReviveMsgPending(lp_player, lv_reviveDuration), libCOMI_ge_CampaignMessageFormatNotFormat_FormatMessage);
        }
        libNtve_gf_PlayerRemoveCooldown(lp_player, libCOOC_gf_CC_CommanderHeroReviveLink(libCOOC_gf_ActiveCommanderForPlayer(lp_player)));
        if ((TechTreeUpgradeCount(lp_player, "NovaCommander", c_techCountCompleteOnly) == 1)) {
            TechTreeUpgradeAddLevel(lp_player, "NovaBuybackUnlock", 1);

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

    }
    else {
        libNtve_gf_PlayerRemoveCooldown(lp_player, libCOOC_gf_CC_CommanderHeroReviveLink(libCOOC_gf_ActiveCommanderForPlayer(lp_player)));
        Wait(0.0625, c_timeGame);
    }

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

            UnitBehaviorAdd(libCOMI_gv_cM_HeroReviver[lp_player], libCOOC_gf_CC_CommanderHeroNormalReviveBehavior(libCOOC_gf_ActiveCommanderForPlayer(lp_player)), libCOMI_gv_cM_HeroReviver[lp_player], 1);
            UnitBehaviorAdd(libCOMI_gv_cM_HeroReviver[lp_player], libCOOC_gf_CC_CommanderHeroReviverExtraBehavior(libCOOC_gf_ActiveCommanderForPlayer(lp_player)), libCOMI_gv_cM_HeroReviver[lp_player], 1);
            libNtve_gf_PlayerRemoveCooldown(lp_player, libCOOC_gf_CC_CommanderHeroReviveLink(libCOOC_gf_ActiveCommanderForPlayer(lp_player)));
            PlayerAddCooldown(lp_player, libCOOC_gf_CC_CommanderHeroReviveLink(libCOOC_gf_ActiveCommanderForPlayer(lp_player)), lv_reviveDuration);
        }

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

            lv_reviveDuration = StringToFixed(CatalogFieldValueGet(c_gameCatalogBehavior, libCOOC_gf_CC_CommanderHeroFirstReviveBehavior(libCOOC_gf_ActiveCommanderForPlayer(lp_player)), "Duration", lp_player));
            libCOUI_gv_cU_HeroReviveTimer[1][lp_player] = lv_reviveDuration;
            libNtve_gf_PlayerRemoveCooldown(lp_player, libCOOC_gf_CC_CommanderHeroReviveLink(libCOOC_gf_ActiveCommanderForPlayer(lp_player)));
            PlayerAddCooldown(lp_player, libCOOC_gf_CC_CommanderHeroReviveLink(libCOOC_gf_ActiveCommanderForPlayer(lp_player)), lv_reviveDuration);
        }

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

    }

    libNtve_gf_PlayerRemoveCooldown(lv_player, libCOOC_gf_CC_CommanderHeroReviveLink(libCOOC_gf_ActiveCommanderForPlayer(lv_player)));
    return true;
}

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

    auto864A12EB_val = PlayerCommander(EventPlayer());
    if (auto864A12EB_val == "Fenix") {
        libNtve_gf_PlayerRemoveCooldown(EventPlayer(), "SOASummonFenix");
        libNtve_gf_PlayerRemoveCooldown(EventPlayer(), "SOASummonFenixDragoon");
        libNtve_gf_PlayerRemoveCooldown(EventPlayer(), "SOASummonFenixArbiter");

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

    if (auto864A12EB_val == "Fenix") {
        libNtve_gf_PlayerRemoveCooldown(EventPlayer(), "SOASummonFenix");
        libNtve_gf_PlayerRemoveCooldown(EventPlayer(), "SOASummonFenixDragoon");
        libNtve_gf_PlayerRemoveCooldown(EventPlayer(), "SOASummonFenixArbiter");
    }