# Weapon Range

Grammar — Range of unit weapon weapon
FlagsNative | Function

Returns a unit’s weapon range.

# Arguments

  • unit — Unit
  • int — Weapon

Returns — fixed

native fixed UnitWeaponRange(unit inUnit, int inIndex);

Category: Unit / Weapons

# Examples

# mods/heroesdata.stormmod

AILib.galaxy

// L2205
UnitWeaponRange(lp_unit, lv_weaponIndex)
// L2206
UnitWeaponRange(lp_unit, lv_weaponIndex)

# mods/warcoop/warclassicsystem.sc2mod

TacticalAIWar3.galaxy

// L433
UnitWeaponRange(aiUnit,1)