# Add Cooldown For Game

Grammar — Add inVal seconds to cooldown inCooldown
FlagsNative | Action

Adds time to the specified global cooldown link.

# Arguments

  • string — Cooldown
  • fixed — Value

Returns — void

native void GameAddCooldown(
	string inCooldown,
	fixed inVal,
);

Category: Game / Charges And Cooldowns

# Examples

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

    // Automatic Variable Declarations
    // Implementation
    GameAddCooldown(lp_inCooldown, (-1.0 * GameGetCooldown(lp_inCooldown)));
}

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

    // Automatic Variable Declarations
    // Implementation
    GameAddCooldown(lp_inCooldown, (-1.0 * GameGetCooldown(lp_inCooldown)));
}