# Add Cooldown For Unit (Deprecated)
Grammar — Add inVal seconds to cooldown inCooldown on unit inUnit
Flags —Native
|Action
|Hidden
Adds time to the specified unit cooldown link.
# Arguments
unit
— Unitstring
[ cooldown ] — Cooldownfixed
— Value
Returns — void
native void UnitAddCooldown(
unit inUnit,
string inCooldown,
fixed inVal,
);
# Related
Category: Unit / Charges And Cooldowns / Deprecated
- [F] —
void
— Remove Charge Regen Time For Unit Behavior (Deprecated) — ( libNtve_gf_UnitBehaviorRemoveChargeRegen ) - [F] —
void
— Remove Charge Regen Time For Unit Ability (Deprecated) — ( libNtve_gf_UnitAbilityRemoveChargeRegen ) - [F] —
void
— Remove Charge Regen Time For Unit (Deprecated) — ( libNtve_gf_UnitRemoveChargeRegen ) - [F] —
void
— Add Charge Regen Time For Unit Behavior (Deprecated) — ( UnitBehaviorAddChargeRegen ) - [F] —
void
— Add Charge Regen Time For Unit Ability (Deprecated) — ( UnitAbilityAddChargeRegen ) - [F] —
void
— Add Charge Regen Time For Unit (Deprecated) — ( UnitAddChargeRegen ) - [F] —
void
— Activate Ability Cooldowns (Deprecated) — ( UnitAbilitySpend ) - [F] —
void
— Add Cooldown For Unit (Deprecated) — ( UnitAddCooldown )
# Examples
# mods/heroesdata.stormmod
// L668
UnitAddCooldown(lv_creepUnit, "Abil/UnderworldBossStun", 1.5)
// L675
UnitAddCooldown(lv_creepUnit, "Abil/UnderworldBossStun", 1.5)
// L699
UnitAddCooldown(lv_creepUnit, "Abil/UnderworldBossRoots", 0.5)