# Clear Cooldowns For Unit
Grammar — Clear Cooldowns For unit unit and reset reset to default.
Flags —Native
|Action
# Arguments
unit
— Unitbool
<preset::Do_Do_Not_Option> — Reset
Returns — void
native void UnitClearCooldowns(unit inUnit, bool inReset);
# Related
Category: Unit / Charges And Cooldowns
- Add Charge Remaining Regen Time For Unit Behavior —
void
— UnitBehaviorAddChargeRegenRemaining - Add Charge Remaining Regen Time For Unit Ability —
void
— UnitAbilityAddChargeRegenRemaining - Add Charge Remaining Regen Time For Unit —
void
— UnitAddChargeRegenRemaining - Add Charge Full Regen Time For Unit Behavior —
void
— UnitBehaviorAddChargeRegenFull - Add Charge Full Regen Time For Unit Ability —
void
— UnitAbilityAddChargeRegenFull - Add Charge Full Regen Time For Unit —
void
— UnitAddChargeRegenFull - Add Charge Used For Unit Behavior —
void
— UnitBehaviorAddChargeUsed - Add Charge Used For Unit Ability —
void
— UnitAbilityAddChargeUsed - Add Charge Used For Unit —
void
— UnitAddChargeUsed - Remove Charge Used For Unit Behavior —
void
— libNtve_gf_UnitBehaviorRemoveChargeUsed - Remove Charge Used For Unit Ability —
void
— libNtve_gf_UnitAbilityRemoveChargeUsed - Remove Charge Used For Unit —
void
— libNtve_gf_UnitRemoveChargeUsed - Charge Regen Remaining For Unit Behavior —
fixed
— UnitBehaviorGetChargeRegen - Charge Regen Remaining For Unit Ability —
fixed
— UnitAbilityGetChargeRegen - Charge Regen Remaining For Unit —
fixed
— UnitGetChargeRegen - Charge Regen Full For Unit Behavior —
fixed
— UnitBehaviorGetChargeRegenFull - Charge Regen Full For Unit Ability —
fixed
— UnitAbilityGetChargeRegenFull - Charge Regen Full For Unit —
fixed
— UnitGetChargeRegenFull - Charge Used For Unit Behavior —
fixed
— UnitBehaviorGetChargeUsed - Charge Used For Unit Ability —
fixed
— UnitAbilityGetChargeUsed - Charge Used For Unit —
fixed
— UnitGetChargeUsed - Add Cooldown For Unit Behavior —
void
— UnitBehaviorAddCooldown - Add Cooldown For Unit Ability —
void
— UnitAbilityAddCooldown - Modify Cooldown For Unit —
void
— UnitModifyCooldown - Clear Cooldowns For Unit —
void
— UnitClearCooldowns - Remove Cooldown For Unit Behavior —
void
— libNtve_gf_UnitBehaviorRemoveCooldown - Remove Cooldown For Unit Ability —
void
— libNtve_gf_UnitAbilityRemoveCooldown - Remove Cooldown For Unit —
void
— libNtve_gf_UnitRemoveCooldown - Cooldown For Unit Behavior —
fixed
— UnitBehaviorGetCooldown - Cooldown For Unit Abilty —
fixed
— UnitAbilityGetCooldown - Cooldown For Unit —
fixed
— UnitGetCooldown - Activate Ability Cooldowns —
void
— UnitAbilitySpendExplicit - Reset Ability Cooldowns —
void
— UnitAbilityReset - Ability Charge Info For Unit —
fixed
— UnitAbilityChargeInfo
# Examples
campaigns/void.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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);
mods/heroesdata.stormmod — base.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.stormmod — base.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.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:3861
if ((libSprt_gv_qACheatsSelectedUnit != null)) {
UnitClearCooldowns(libSprt_gv_qACheatsSelectedUnit, true);
}
else {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:3864
}
else {
UnitClearCooldowns(libGame_gv_players[1].lv_heroUnit, true);
}
return true;