# Activate Ability Cooldowns (Deprecated)

Grammar — Activate spendLocation|Location cooldowns on ability abilityCommand|Ability on unit u
FlagsNative | 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

Returns — void

native void UnitAbilitySpend(
	unit inUnit,
	abilcmd inAbilCmd,
	int inLocation,
);

Category: Unit / Charges And Cooldowns / Deprecated

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian03.sc2map/MapScript.galaxy:5355

    TriggerExecute(gt_StartAI, true, false);
    Wait(0.1, c_timeReal);
    UnitAbilitySpend(gv_artifact, AbilityCommand("EnergyNova", 0), c_spendLocationAll);
    libNtve_gf_UnitAbilityRemoveCooldown(gv_artifact, "EnergyNova", "Abil/Supernova");
    UnitAbilityAddCooldown(gv_artifact, "EnergyNova", "Abil/Supernova", 184.0);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian03.sc2mapMapScript.galaxy:5355

    TriggerExecute(gt_StartAI, true, false);
    Wait(0.1, c_timeReal);
    UnitAbilitySpend(gv_artifact, AbilityCommand("EnergyNova", 0), c_spendLocationAll);
    libNtve_gf_UnitAbilityRemoveCooldown(gv_artifact, "EnergyNova", "Abil/Supernova");
    UnitAbilityAddCooldown(gv_artifact, "EnergyNova", "Abil/Supernova", 184.0);