# Weapons (functions)

- [BIS_fnc_addWeapon](../../functions/BIS_fnc_addWeapon.md): Adds a weapon to the specified unit, with magazine classnames taken from the weapon's config (in CfgWeapons).
- [BIS_fnc_baseWeapon](../../functions/BIS_fnc_baseWeapon.md): Determines base weapon class, with no attachments.
- [BIS_fnc_classWeapon](../../functions/BIS_fnc_classWeapon.md): Returns class of weapon given by string.
- [BIS_fnc_compatibleMagazines](../../functions/BIS_fnc_compatibleMagazines.md) **[deprecated]**: Gets all compatible magazines for selected weapons. Function looks both for magazines listed in `magazines` array and compatible `magazineWells`.
- [BIS_fnc_fire](../../functions/BIS_fnc_fire.md): Makes a unit or a vehicle fire given muzzle. Make sure that there is some ammo to fire, and, in case of a unit, the weapon with given muzzle is already selected.
- [BIS_fnc_magazinesEntityType](../../functions/BIS_fnc_magazinesEntityType.md): Return object's magazines as defined in config. Scans also turrets and pylons.
- [BIS_fnc_packStaticWeapon](../../functions/BIS_fnc_packStaticWeapon.md): This function will make weapon team pack a static weapon. The weapon crew will pack carried weapon (or given weapon if different) and follow leader. Requires three personnel in the team: Team Leader, Gunner and Asst.
- [BIS_fnc_unpackStaticWeapon](../../functions/BIS_fnc_unpackStaticWeapon.md): This function will move given support team to the given weapon position. The weapon crew will unpack carried weapon and start watching given target position.
- [BIS_fnc_weaponAddon](../../functions/BIS_fnc_weaponAddon.md): Return addon from CfgPatches to which a given weapon class belongs to.
- [BIS_fnc_weaponComponents](../../functions/BIS_fnc_weaponComponents.md): Returns array with classname of the parent weapon (without attachments), followed by classnames of all its attachments.
- [BIS_fnc_weaponDirectionRelative](../../functions/BIS_fnc_weaponDirectionRelative.md): Returns relative direction vector of given weapon for the given vehicle
- [BIS_fnc_weaponsEntityType](../../functions/BIS_fnc_weaponsEntityType.md): Return object's weapons as defined in config. Scans also turrets and pylons.
