# Weapon Target Check
Grammar — unit weapon weapon|Index can target target
Flags —Native
|Function
Returns true if a unit weapon can target a specific target.
# Arguments
unit
— Unitint
— Weaponint
[ preset::UnitFilterType ] — Target
Returns — bool
native bool UnitWeaponCheck(
unit inUnit,
int inIndex,
int inTarget,
);
# 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 —