# Set Weapon Cooldown Remaining
Grammar — Set the cooldown remaining for weapon index on unit to remaining.
Flags —Native
|Action
Set the remaining cooldown to 0 to let the weapon fire as soon as possible.
# Arguments
unit
— Unitint
— Indexfixed
— Remaining
Returns — void
native void UnitWeaponSetPeriodRemaining(
unit inUnit,
int inIndex,
fixed inRemaining,
);
# Related
Category: Unit / Weapons
- [F] —
void
— Remove Weapon From Unit — ( UnitWeaponRemove ) - [F] —
void
— Add Weapon To Unit — ( UnitWeaponAdd ) - [F] —
int
— Number Of Weapons On Unit — ( UnitWeaponCount ) - [F] —
string
[ gamelink::Weapon ] — Unit Weapon — ( UnitWeaponGet ) - [F] —
bool
— Weapon Is Enabled — ( UnitWeaponIsEnabled ) - [F] —
bool
— Weapon Target Check — ( UnitWeaponCheck ) - [F] —
fixed
— Weapon Cooldown — ( UnitWeaponPeriod ) - [F] —
fixed
— Weapon Range — ( UnitWeaponRange ) - [F] —
fixed
— Weapon Cooldown Remaining — ( UnitWeaponPeriodRemaining ) - [F] —
void
— Add Ammo To Magazine — ( UnitMagazineArm ) - [F] —
unit
— Last Created Magazine Ammo Unit — ( UnitMagazineLastCreated ) - [F] —
unitgroup
— Last Created Magazine Ammo Units — ( UnitMagazineLastCreatedGroup ) - [F] —
int
— Magazine Count Of Unit — ( UnitMagazineCount ) - [F] —
unit
— Magazine Owner Of Unit — ( UnitGetMagazine ) - [F] —
bool
— Unit Can Attack Unit Old — ( libNtve_gf_UnitCanAttackUnit ) - [F] —
bool
— Unit Can Attack Unit Type — ( UnitCanAttackTarget ) - [F] —
bool
— Unit In Range And Able To Attack Target — ( UnitInRangeAndAbleToAttackTarget ) - [F] —
fixed
— Weapon Damage — ( UnitWeaponDamage ) - [F] —
fixed
— Weapon Speed Multiplier — ( UnitWeaponSpeedMultiplier ) - [F] —
void
— Set Weapon Cooldown Remaining — ( UnitWeaponSetPeriodRemaining )
# Examples
— None found —