# Reset Ability Cooldowns
Grammar — Reset spendLocation|Location cooldowns on ability abilityCommand|Ability on unit u
Flags —Native
|Action
Resets the specified cooldowns on the specified ability on the specified unit.
# Arguments
unit
— Unitabilcmd
— Ability Commandint
[ preset::Unit_Color_Change_Option24 ] — Spend Location
Returns — void
native void UnitAbilityReset(
unit inUnit,
abilcmd inAbilCmd,
int inLocation,
);
# Related
Category: Unit / Charges And Cooldowns
- [F] —
void
— Add Charge Remaining Regen Time For Unit Behavior — ( UnitBehaviorAddChargeRegenRemaining ) - [F] —
void
— Add Charge Remaining Regen Time For Unit Ability — ( UnitAbilityAddChargeRegenRemaining ) - [F] —
void
— Add Charge Remaining Regen Time For Unit — ( UnitAddChargeRegenRemaining ) - [F] —
void
— Add Charge Full Regen Time For Unit Behavior — ( UnitBehaviorAddChargeRegenFull ) - [F] —
void
— Add Charge Full Regen Time For Unit Ability — ( UnitAbilityAddChargeRegenFull ) - [F] —
void
— Add Charge Full Regen Time For Unit — ( UnitAddChargeRegenFull ) - [F] —
void
— Add Charge Used For Unit Behavior — ( UnitBehaviorAddChargeUsed ) - [F] —
void
— Add Charge Used For Unit Ability — ( UnitAbilityAddChargeUsed ) - [F] —
void
— Add Charge Used For Unit — ( UnitAddChargeUsed ) - [F] —
void
— Remove Charge Used For Unit Behavior — ( libNtve_gf_UnitBehaviorRemoveChargeUsed ) - [F] —
void
— Remove Charge Used For Unit Ability — ( libNtve_gf_UnitAbilityRemoveChargeUsed ) - [F] —
void
— Remove Charge Used For Unit — ( libNtve_gf_UnitRemoveChargeUsed ) - [F] —
fixed
— Charge Regen Remaining For Unit Behavior — ( UnitBehaviorGetChargeRegen ) - [F] —
fixed
— Charge Regen Remaining For Unit Ability — ( UnitAbilityGetChargeRegen ) - [F] —
fixed
— Charge Regen Remaining For Unit — ( UnitGetChargeRegen ) - [F] —
fixed
— Charge Regen Full For Unit Behavior — ( UnitBehaviorGetChargeRegenFull ) - [F] —
fixed
— Charge Regen Full For Unit Ability — ( UnitAbilityGetChargeRegenFull ) - [F] —
fixed
— Charge Regen Full For Unit — ( UnitGetChargeRegenFull ) - [F] —
fixed
— Charge Used For Unit Behavior — ( UnitBehaviorGetChargeUsed ) - [F] —
fixed
— Charge Used For Unit Ability — ( UnitAbilityGetChargeUsed ) - [F] —
fixed
— Charge Used For Unit — ( UnitGetChargeUsed ) - [F] —
void
— Add Cooldown For Unit Behavior — ( UnitBehaviorAddCooldown ) - [F] —
void
— Add Cooldown For Unit Ability — ( UnitAbilityAddCooldown ) - [F] —
void
— Modify Cooldown For Unit — ( UnitModifyCooldown ) - [F] —
void
— Clear Cooldowns For Unit — ( UnitClearCooldowns ) - [F] —
void
— Remove Cooldown For Unit Behavior — ( libNtve_gf_UnitBehaviorRemoveCooldown ) - [F] —
void
— Remove Cooldown For Unit Ability — ( libNtve_gf_UnitAbilityRemoveCooldown ) - [F] —
void
— Remove Cooldown For Unit — ( libNtve_gf_UnitRemoveCooldown ) - [F] —
fixed
— Cooldown For Unit Behavior — ( UnitBehaviorGetCooldown ) - [F] —
fixed
— Cooldown For Unit Abilty — ( UnitAbilityGetCooldown ) - [F] —
fixed
— Cooldown For Unit — ( UnitGetCooldown ) - [F] —
void
— Activate Ability Cooldowns — ( UnitAbilitySpendExplicit ) - [F] —
void
— Reset Ability Cooldowns — ( UnitAbilityReset ) - [F] —
fixed
— Ability Charge Info For Unit — ( UnitAbilityChargeInfo )
# Examples
# campaigns/liberty.sc2campaign
// L1460
UnitAbilityReset(EventUnit(), AbilityCommand("InfestedTerrans", 0), c_spendLocationAll)
// L883
UnitAbilityReset(gv_nova, AbilityCommand("NovaSnipe", 0), c_spendLocationAll)
// L885
UnitAbilityReset(gv_nova, AbilityCommand("Domination", 0), c_spendLocationAll)
// L2763
UnitAbilityReset(gv_uNIT_KERRIGAN, AbilityCommand("Tychus03OmegaStorm", 0), c_spendLocationAbility)
// L2771
UnitAbilityReset(gv_uNIT_KERRIGAN, AbilityCommand("Tychus03OmegaStorm", 0), c_spendLocationAbility)
// L2779
UnitAbilityReset(gv_uNIT_KERRIGAN, AbilityCommand("Tychus03OmegaStorm", 0), c_spendLocationAbility)
// L656
UnitAbilityReset(gv_tHEONERAYNOR, AbilityCommand("RaynorSnipe", 0), c_spendLocationAll)
// L657
UnitAbilityReset(gv_tHEONETYCHUS, AbilityCommand("BonesTossGrenade", 0), c_spendLocationAll)
// L658
UnitAbilityReset(gv_tHEONESWANN, AbilityCommand("DutchPlaceTurret", 0), c_spendLocationAll)
// L4986
UnitAbilityReset(gv_artifact, AbilityCommand("EnergyNova", 0), c_spendLocationAll)
// L5644
UnitAbilityReset(gv_artifact, AbilityCommand("EnergyNova", 0), c_spendLocationAll)
// L416
UnitAbilityReset(gv_tHEONEZERATUL, AbilityCommand("ZeratulBlink", 0), c_spendLocationAll)
// L417
UnitAbilityReset(gv_tHEONEZERATUL, AbilityCommand("ZeratulStun", 0), c_spendLocationAll)
// L421
UnitAbilityReset(autoD29854AF_var, AbilityCommand("Blink", 0), c_spendLocationAll)
// L317
UnitAbilityReset(gv_zeratul, AbilityCommand("ZeratulBlink", 0), c_spendLocationAll)
// L318
UnitAbilityReset(gv_zeratul, AbilityCommand("ZeratulStun", 0), c_spendLocationAll)
// L4980
UnitAbilityReset(gv_zeratul, AbilityCommand("ZeratulStun", 0), c_spendLocationAll)
// L4981
UnitAbilityReset(gv_zeratul, AbilityCommand("ZeratulBlink", 0), c_spendLocationAll)
// L1460
UnitAbilityReset(EventUnit(), AbilityCommand("InfestedTerrans", 0), c_spendLocationAll)
// L883
UnitAbilityReset(gv_nova, AbilityCommand("NovaSnipe", 0), c_spendLocationAll)
// L885
UnitAbilityReset(gv_nova, AbilityCommand("Domination", 0), c_spendLocationAll)
// L2763
UnitAbilityReset(gv_uNIT_KERRIGAN, AbilityCommand("Tychus03OmegaStorm", 0), c_spendLocationAbility)
// L2771
UnitAbilityReset(gv_uNIT_KERRIGAN, AbilityCommand("Tychus03OmegaStorm", 0), c_spendLocationAbility)
// L2779
UnitAbilityReset(gv_uNIT_KERRIGAN, AbilityCommand("Tychus03OmegaStorm", 0), c_spendLocationAbility)
// L656
UnitAbilityReset(gv_tHEONERAYNOR, AbilityCommand("RaynorSnipe", 0), c_spendLocationAll)
// L657
UnitAbilityReset(gv_tHEONETYCHUS, AbilityCommand("BonesTossGrenade", 0), c_spendLocationAll)
// L658
UnitAbilityReset(gv_tHEONESWANN, AbilityCommand("DutchPlaceTurret", 0), c_spendLocationAll)
// L4986
UnitAbilityReset(gv_artifact, AbilityCommand("EnergyNova", 0), c_spendLocationAll)
// L5644
UnitAbilityReset(gv_artifact, AbilityCommand("EnergyNova", 0), c_spendLocationAll)
// L416
UnitAbilityReset(gv_tHEONEZERATUL, AbilityCommand("ZeratulBlink", 0), c_spendLocationAll)
// L417
UnitAbilityReset(gv_tHEONEZERATUL, AbilityCommand("ZeratulStun", 0), c_spendLocationAll)
// L421
UnitAbilityReset(autoD29854AF_var, AbilityCommand("Blink", 0), c_spendLocationAll)
// L317
UnitAbilityReset(gv_zeratul, AbilityCommand("ZeratulBlink", 0), c_spendLocationAll)
// L318
UnitAbilityReset(gv_zeratul, AbilityCommand("ZeratulStun", 0), c_spendLocationAll)
// L4980
UnitAbilityReset(gv_zeratul, AbilityCommand("ZeratulStun", 0), c_spendLocationAll)
// L4981
UnitAbilityReset(gv_zeratul, AbilityCommand("ZeratulBlink", 0), c_spendLocationAll)
// L11683
UnitAbilityReset(gv_kerrigan, AbilityCommand("PsionicLift", 0), c_spendLocationAll)
// L11684
UnitAbilityReset(gv_kerrigan, AbilityCommand("MindBolt", 0), c_spendLocationAll)
// L12016
UnitAbilityReset(gv_kerrigan, AbilityCommand("PsionicLift", 0), c_spendLocationAll)
// L12017
UnitAbilityReset(gv_kerrigan, AbilityCommand("MindBolt", 0), c_spendLocationAll)
// L12370
UnitAbilityReset(gv_kerrigan, AbilityCommand("PsionicLift", 0), c_spendLocationAll)
// L12371
UnitAbilityReset(gv_kerrigan, AbilityCommand("MindBolt", 0), c_spendLocationAll)
// L12955
UnitAbilityReset(gv_kerrigan, AbilityCommand("PsionicLift", 0), c_spendLocationAll)
// L12956
UnitAbilityReset(gv_kerrigan, AbilityCommand("MindBolt", 0), c_spendLocationAll)
// L11683
UnitAbilityReset(gv_kerrigan, AbilityCommand("PsionicLift", 0), c_spendLocationAll)
// L11684
UnitAbilityReset(gv_kerrigan, AbilityCommand("MindBolt", 0), c_spendLocationAll)
// L12016
UnitAbilityReset(gv_kerrigan, AbilityCommand("PsionicLift", 0), c_spendLocationAll)
// L12017
UnitAbilityReset(gv_kerrigan, AbilityCommand("MindBolt", 0), c_spendLocationAll)
// L12370
UnitAbilityReset(gv_kerrigan, AbilityCommand("PsionicLift", 0), c_spendLocationAll)
// L12371
UnitAbilityReset(gv_kerrigan, AbilityCommand("MindBolt", 0), c_spendLocationAll)
// L12955
UnitAbilityReset(gv_kerrigan, AbilityCommand("PsionicLift", 0), c_spendLocationAll)
// L12956
UnitAbilityReset(gv_kerrigan, AbilityCommand("MindBolt", 0), c_spendLocationAll)
# campaigns/swarmstory.sc2campaign
// L4663
UnitAbilityReset(lp_hero, lp_abilityCommand, c_spendLocationAll)
# mods/heroes.stormmod
// L8986
UnitAbilityReset(libGame_gv_players[1].lv_heroUnit, AbilityCommand("ZeratulBlinkStorm", 0), c_spendLocationAll)
// L8986
UnitAbilityReset(libGame_gv_players[1].lv_heroUnit, AbilityCommand("ZeratulBlinkStorm", 0), c_spendLocationAll)
# mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod
// L7038
UnitAbilityReset(libPEB1_gv_slivan, AbilityCommand("SlivanBossSlimeSpit", 0), c_spendLocationAll)
# mods/heroesdata.stormmod
// L7531
UnitAbilityReset(lv_unit, AbilityCommand("BarbarianLeap", 0), c_spendLocationAll)
// L7603
UnitAbilityReset(lv_eventUnit, AbilityCommand("BarbarianLeap", 0), c_spendLocationAll)
// L19120
UnitAbilityReset(lv_rexxar, AbilityCommand("RexxarMishaFollowCancel", 0), c_spendLocationUnit)
// L20925
UnitAbilityReset(lv_sgtHammerUnit, AbilityCommand("SgtHammerSiegeMode", 0), c_spendLocationAll)
# mods/heroesmapmods/battlegroundmapmods/infernalshrines.stormmod
// L2090
UnitAbilityReset(EventPlayerEffectUsedUnit(c_effectUnitCaster), AbilityCommand("MercPunisherLanerLeap", 0), c_spendLocationAll)
# mods/heroesmapmods/battlegroundmapmods/infernalshrinesdata.stormmod
// L152
UnitAbilityReset(EventPlayerEffectUsedUnit(c_effectUnitCaster), AbilityCommand("MercPunisherLanerLeap", 0), c_spendLocationAll)
# mods/heromods/thefirelords.stormmod
// L507
UnitAbilityReset(EventUnitCreatedUnit(), AbilityCommand("RagnarosMoltenCore", 0), c_spendLocationUnit)
# mods/starcoop/starcoop.sc2mod
// L5127
UnitAbilityReset(libCOMI_gv_cM_GlobalCasterUnit[lp_player], AbilityCommand("HHBomberPlatformAreaBombTopBarDummyTimer", 0), c_spendLocationAbility)
// L15744
UnitAbilityReset(EventPlayerEffectUsedUnit(c_effectUnitCaster), AbilityCommand("LocustLaunch", 0), c_spendLocationUnit)
// L15785
UnitAbilityReset(lv_unit, AbilityCommand("RavagerAbathurCorrosiveBile", 0), c_spendLocationAll)
# mods/voidprologue.sc2mod
// L3528
UnitAbilityReset(lp_hero, lp_abilityCommand, c_spendLocationAll)