# Remove Weapon From Unit
Grammar — Remove weapon from unit
Flags —Native
|Action
Removes the specified weapon from the specified unit.
# Arguments
unit
— Unitstring
[ gamelink::Weapon ] — Weapon
Returns — void
native void UnitWeaponRemove(unit inUnit, string inWeapon);
# 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
# mods/heroesbrawlmods/arenamodemods/gardenarena.stormmod
// L361
UnitWeaponRemove(lv_plantTerror, "VehiclePlantHorror")
# mods/novastoryassets.sc2mod
// L1366
UnitWeaponRemove(gv_s2_Davis, "OfficersPistol")
// L1366
UnitWeaponRemove(gv_s2_Davis, "OfficersPistol")
# mods/starcoop/starcoop.sc2mod
// L21113
UnitWeaponRemove(EventUnit(), "GlaiveWurm")
// L26789
UnitWeaponRemove(EventUnit(), "HunterKillerMelee")
// L26790
UnitWeaponRemove(EventUnit(), "HunterKiller")
// L26797
UnitWeaponRemove(EventUnit(), "AcidSaliva")
// L26798
UnitWeaponRemove(EventUnit(), "RoachMelee")