# Add Cooldown For Unit (Deprecated)

Grammar — Add inVal seconds to cooldown inCooldown on unit inUnit
FlagsNative | Action | Hidden

Adds time to the specified unit cooldown link.

# Arguments

  • unit — Unit
  • string [ cooldown ] — Cooldown
  • fixed — Value

Returns — void

native void UnitAddCooldown(
	unit inUnit,
	string inCooldown,
	fixed inVal,
);

Category: Unit / Charges And Cooldowns / Deprecated

# Examples

# mods/heroesdata.stormmod

AILib.galaxy

// L668
UnitAddCooldown(lv_creepUnit, "Abil/UnderworldBossStun", 1.5)
// L675
UnitAddCooldown(lv_creepUnit, "Abil/UnderworldBossStun", 1.5)
// L699
UnitAddCooldown(lv_creepUnit, "Abil/UnderworldBossRoots", 0.5)