# Cooldown For Unit Behavior

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

Returns the cooldown time for the specified behavior cooldown link.

# Arguments

  • unit — Unit
  • string<gamelink::Behavior> — Behavior
  • string<cooldown> — Cooldown

Returns — fixed

native fixed UnitBehaviorGetCooldown(
	unit inUnit,
	string inBehavior,
	string inCooldown,
);

Category: Unit / Charges And Cooldowns

# Examples

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:5855

    // Automatic Variable Declarations
    // Implementation
    UnitBehaviorAddCooldown(lp_inUnit, lp_inBehavior, lp_inCooldown, (-1.0 * UnitBehaviorGetCooldown(lp_inUnit, lp_inBehavior, lp_inCooldown)));
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:4993

    // Automatic Variable Declarations
    // Implementation
    UnitBehaviorAddCooldown(lp_inUnit, lp_inBehavior, lp_inCooldown, (-1.0 * UnitBehaviorGetCooldown(lp_inUnit, lp_inBehavior, lp_inCooldown)));
}