# Activate Ability Cooldowns (Deprecated)
Grammar — Activate spendLocation|Location cooldowns on ability abilityCommand|Ability on unit u
Flags —Native
|Action
|Hidden
Activates the specified cooldowns on the specified ability on the specified unit. In most cases, this will cause the ability to act as if it had just been used.
# Arguments
unit
— Unitabilcmd
— Ability Commandint
[ preset::Unit_Color_Change_Option24 ] — Spend Location
Returns — void
native void UnitAbilitySpend(
unit inUnit,
abilcmd inAbilCmd,
int inLocation,
);
# 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
# campaigns/liberty.sc2campaign
// L5355
UnitAbilitySpend(gv_artifact, AbilityCommand("EnergyNova", 0), c_spendLocationAll)
// L5355
UnitAbilitySpend(gv_artifact, AbilityCommand("EnergyNova", 0), c_spendLocationAll)