# Clear Cooldowns For Unit

Grammar — Clear Cooldowns For unit unit and reset reset to default.
FlagsNative | Action

# Arguments

Returns — void

native void UnitClearCooldowns(unit inUnit, bool inReset);

Category: Unit / Charges And Cooldowns

# Examples

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pulnar02.sc2map/MapScript.galaxy:8557

    UnitSetState(gv_kERRIGAN, c_unitStateFidget, true);
    UnitSetState(gv_aRTANIS, c_unitStateFidget, true);
    UnitClearCooldowns(gv_aRTANIS, true);
    UnitClearCooldowns(gv_kERRIGAN, true);
    SoundStop(gv_midSound, true);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pulnar02.sc2map/MapScript.galaxy:8558

    UnitSetState(gv_aRTANIS, c_unitStateFidget, true);
    UnitClearCooldowns(gv_aRTANIS, true);
    UnitClearCooldowns(gv_kERRIGAN, true);
    SoundStop(gv_midSound, true);
    SoundStopAllTriggerSounds(true);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pulnar02.sc2map/MapScript.galaxy:8942

    UnitSetState(gv_aRTANIS, c_unitStateSelectable, true);
    UnitSetState(gv_kERRIGAN, c_unitStateSelectable, true);
    UnitClearCooldowns(gv_aRTANIS, true);
    UnitClearCooldowns(gv_kERRIGAN, true);
    SoundChannelSetVolume(PlayerGroupAll(), c_soundCategoryOther, 100.0, 1.0);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pulnar02.sc2map/MapScript.galaxy:8943

    UnitSetState(gv_kERRIGAN, c_unitStateSelectable, true);
    UnitClearCooldowns(gv_aRTANIS, true);
    UnitClearCooldowns(gv_kERRIGAN, true);
    SoundChannelSetVolume(PlayerGroupAll(), c_soundCategoryOther, 100.0, 1.0);
    SoundStop(gv_midSound, true);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pulnar02.sc2map/MapScript.galaxy:9390

    UnitSelect(gv_aRTANIS, gv_pLAYER_01_USER, true);
    UnitSelect(gv_kERRIGAN, gv_pLAYER_01_USER, true);
    UnitClearCooldowns(gv_aRTANIS, true);
    UnitClearCooldowns(gv_kERRIGAN, true);
    VisExploreArea(gv_pLAYER_01_USER, RegionEntireMap(), false, false);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pulnar02.sc2map/MapScript.galaxy:9391

    UnitSelect(gv_kERRIGAN, gv_pLAYER_01_USER, true);
    UnitClearCooldowns(gv_aRTANIS, true);
    UnitClearCooldowns(gv_kERRIGAN, true);
    VisExploreArea(gv_pLAYER_01_USER, RegionEntireMap(), false, false);
    if ((gv_cinematicCompleted == true)) {

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue03.sc2map/MapScript.galaxy:5901

    CinematicFade(true, 3.0, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
    PlayerPauseAllCooldowns(gv_pLAYER_01_USER, false);
    UnitClearCooldowns(gv_cinematicKerrigan, false);
    UnitSetPropertyFixed(gv_cinematicKerrigan, c_unitPropEnergyPercent, 100.0);
    SoundChannelSetVolume(PlayerGroupAll(), c_soundCategoryOther, 75.0, 1.0);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pulnar02.sc2mapMapScript.galaxy:8557

    UnitSetState(gv_kERRIGAN, c_unitStateFidget, true);
    UnitSetState(gv_aRTANIS, c_unitStateFidget, true);
    UnitClearCooldowns(gv_aRTANIS, true);
    UnitClearCooldowns(gv_kERRIGAN, true);
    SoundStop(gv_midSound, true);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pulnar02.sc2mapMapScript.galaxy:8558

    UnitSetState(gv_aRTANIS, c_unitStateFidget, true);
    UnitClearCooldowns(gv_aRTANIS, true);
    UnitClearCooldowns(gv_kERRIGAN, true);
    SoundStop(gv_midSound, true);
    SoundStopAllTriggerSounds(true);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pulnar02.sc2mapMapScript.galaxy:8942

    UnitSetState(gv_aRTANIS, c_unitStateSelectable, true);
    UnitSetState(gv_kERRIGAN, c_unitStateSelectable, true);
    UnitClearCooldowns(gv_aRTANIS, true);
    UnitClearCooldowns(gv_kERRIGAN, true);
    SoundChannelSetVolume(PlayerGroupAll(), c_soundCategoryOther, 100.0, 1.0);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pulnar02.sc2mapMapScript.galaxy:8943

    UnitSetState(gv_kERRIGAN, c_unitStateSelectable, true);
    UnitClearCooldowns(gv_aRTANIS, true);
    UnitClearCooldowns(gv_kERRIGAN, true);
    SoundChannelSetVolume(PlayerGroupAll(), c_soundCategoryOther, 100.0, 1.0);
    SoundStop(gv_midSound, true);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pulnar02.sc2mapMapScript.galaxy:9390

    UnitSelect(gv_aRTANIS, gv_pLAYER_01_USER, true);
    UnitSelect(gv_kERRIGAN, gv_pLAYER_01_USER, true);
    UnitClearCooldowns(gv_aRTANIS, true);
    UnitClearCooldowns(gv_kERRIGAN, true);
    VisExploreArea(gv_pLAYER_01_USER, RegionEntireMap(), false, false);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pulnar02.sc2mapMapScript.galaxy:9391

    UnitSelect(gv_kERRIGAN, gv_pLAYER_01_USER, true);
    UnitClearCooldowns(gv_aRTANIS, true);
    UnitClearCooldowns(gv_kERRIGAN, true);
    VisExploreArea(gv_pLAYER_01_USER, RegionEntireMap(), false, false);
    if ((gv_cinematicCompleted == true)) {

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue03.sc2mapMapScript.galaxy:5901

    CinematicFade(true, 3.0, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
    PlayerPauseAllCooldowns(gv_pLAYER_01_USER, false);
    UnitClearCooldowns(gv_cinematicKerrigan, false);
    UnitSetPropertyFixed(gv_cinematicKerrigan, c_unitPropEnergyPercent, 100.0);
    SoundChannelSetVolume(PlayerGroupAll(), c_soundCategoryOther, 75.0, 1.0);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/StartingExperienceLib.galaxy:1634

    UnitBehaviorRemove(libGame_gv_players[lp_player].lv_heroUnit, "HealingFountainCooldown", 1);
    libCore_gf_ClearAllNonpermanentBehaviorsonUnit(libGame_gv_players[lp_player].lv_heroUnit);
    UnitClearCooldowns(libGame_gv_players[lp_player].lv_heroUnit, true);
    autoA925B367_g = UnitGroup(null, lp_player, RegionEntireMap(), UnitFilter(0, (1 << (c_targetFilterSummoned - 32)), (1 << c_targetFilterAlly) | (1 << c_targetFilterNeutral) | (1 << c_targetFilterEnemy) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    autoA925B367_u = UnitGroupCount(autoA925B367_g, c_unitCountAll);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/StartingExperienceLib.galaxy:1962

    // Automatic Variable Declarations
    // Implementation
    UnitClearCooldowns(lp_unit, false);
    UnitSetPropertyFixed(lp_unit, c_unitPropLifePercent, 100.0);
    UnitSetPropertyFixed(lp_unit, c_unitPropEnergyPercent, 100.0);

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


    if ((libSprt_gv_qACheatsSelectedUnit != null)) {
        UnitClearCooldowns(libSprt_gv_qACheatsSelectedUnit, true);
    }
    else {

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

    }
    else {
        UnitClearCooldowns(libGame_gv_players[1].lv_heroUnit, true);
    }
    return true;