# Cooldown For Unit

Grammar — Cooldown of cooldown inCooldown on unit inUnit
FlagsNative | Function

Returns the cooldown time for the specified unit cooldown link.

# Arguments

  • unit — Unit
  • string [ cooldown ] — Cooldown

Returns — fixed

native fixed UnitGetCooldown(
	unit inUnit,
	string inCooldown,
);

Category: Unit / Charges And Cooldowns

# Examples

# mods/heroesdata.stormmod

AILib.galaxy

// L656
UnitGetCooldown(lv_creepUnit, "Abil/KnightMagicVolley")
// L664
UnitGetCooldown(lv_creepUnit, "Abil/UnderworldBossStun")
// L683
UnitGetCooldown(lv_creepUnit, "Abil/UnderworldBossRoots")

# mods/heroesdata.stormmod

GameDataHelperLib.galaxy

// L5987
UnitGetCooldown(libGDHL_gf_AbathurSymbioteTarget(), "Abil/AbathurMonstrosityDeepTunnel")
// L17082
UnitGetCooldown(libGame_gv_players[lv_eggOwnerPlayer].lv_heroUnit, CatalogFieldValueGet(c_gameCatalogAbil, "MurkyRespawnEgg", "Cost[" + IntToString(0) + "].Cooldown.Link", UnitGetOwner(libGame_gv_players[lv_eggOwnerPlayer].lv_heroUnit)))

# mods/heroesdata.stormmod

HeroesLib.galaxy

// L2862
UnitGetCooldown(lp_unit, lv_cooldownLink)

# mods/heroesdata.stormmod

UILib.galaxy

// L6857
UnitGetCooldown(lp_unit, lv_cooldownLink)
// L6861
UnitGetCooldown(lp_unit, lv_cooldownLink)

# mods/heromods/auriel.stormmod

LibHAUR.galaxy

// L263
UnitGetCooldown(libGame_gv_players[lp_aurielPlayer].lv_heroUnit, CatalogFieldValueGet(c_gameCatalogAbil, "AurielResurrect", "Cost[" + IntToString(0) + "].Cooldown.Link", lp_aurielPlayer))
// L276
UnitGetCooldown(libGame_gv_players[lp_aurielPlayer].lv_heroUnit, CatalogFieldValueGet(c_gameCatalogAbil, "AurielResurrect", "Cost[" + IntToString(0) + "].Cooldown.Link", lp_aurielPlayer))
// L289
UnitGetCooldown(libGame_gv_players[lp_aurielPlayer].lv_heroUnit, CatalogFieldValueGet(c_gameCatalogAbil, "AurielResurrect", "Cost[" + IntToString(0) + "].Cooldown.Link", lp_aurielPlayer))
// L302
UnitGetCooldown(libGame_gv_players[lp_aurielPlayer].lv_heroUnit, CatalogFieldValueGet(c_gameCatalogAbil, "AurielResurrect", "Cost[" + IntToString(0) + "].Cooldown.Link", lp_aurielPlayer))

# mods/heromods/chogall.stormmod

LibHCHO.galaxy

// L1229
UnitGetCooldown(libGDHL_gv_chogallPairs[lv_choGallPairsTeam].lv_choUnit, lv_cooldownLink)

# mods/heromods/samuro.stormmod

LibHSAM.galaxy

// L1063
UnitGetCooldown(lv_samuro, lv_cooldownLink)

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L14018
UnitGetCooldown(lv_caster, "Abil/ObserverTargetLock")
// L14065
UnitGetCooldown(lv_caster, "Abil/ObserverTargetLock")

# mods/starcoop/starcoop.sc2mod

LibCOMU.galaxy

// L2023
UnitGetCooldown(lp_aIUnit, "MutatorAmonDehakaHeal")
// L2032
UnitGetCooldown(lp_aIUnit, "MutatorAmonDehakaMirrorImage")
// L2074
UnitGetCooldown(lp_aIUnit, "SpawnPhaseCannon")
// L2399
UnitGetCooldown(lp_aIUnit, "Apocalypse")

# mods/warcoop/progression/equipments.sc2mod

LibPEqu.galaxy

// L53
UnitGetCooldown(lv_attacker, "Artifact/ArtifactHeroAttackTeleport")