# Weapon Cooldown

Grammar — Cooldown of unit weapon weapon
FlagsNative | Function

Returns a unit’s weapon cooldown.

# Arguments

  • unit — Unit
  • int — Weapon

Returns — fixed

native fixed UnitWeaponPeriod(unit inUnit, int inIndex);

Category: Unit / Weapons

# Examples

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:15745

    }

    lv_cooldown = UnitWeaponPeriod(EventPlayerEffectUsedUnit(c_effectUnitCaster), 1);
    lv_multiplier = UnitWeaponSpeedMultiplier(EventPlayerEffectUsedUnit(c_effectUnitCaster), 1);
    UnitAbilityReset(EventPlayerEffectUsedUnit(c_effectUnitCaster), AbilityCommand("LocustLaunch", 0), c_spendLocationUnit);