Weapons
12 functions. Also as Markdown for agents.
- BIS_fnc_addWeaponAdds a weapon to the specified unit, with magazine classnames taken from the weapon's config (in CfgWeapons).
- BIS_fnc_baseWeaponDetermines base weapon class, with no attachments.
- BIS_fnc_classWeaponReturns class of weapon given by string.
- BIS_fnc_compatibleMagazinesGets all compatible magazines for selected weapons. Function looks both for magazines listed in `magazines` array and compatible `magazineWells`.
- BIS_fnc_fireMakes 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…
- BIS_fnc_magazinesEntityTypeReturn object's magazines as defined in config. Scans also turrets and pylons.
- BIS_fnc_packStaticWeaponThis function will make weapon team pack a static weapon. The weapon crew will pack carried weapon (or given weapon if different) and follow leader.…
- BIS_fnc_unpackStaticWeaponThis function will move given support team to the given weapon position. The weapon crew will unpack carried weapon and start watching given target…
- BIS_fnc_weaponAddonReturn addon from CfgPatches to which a given weapon class belongs to.
- BIS_fnc_weaponComponentsReturns array with classname of the parent weapon (without attachments), followed by classnames of all its attachments.
- BIS_fnc_weaponDirectionRelativeReturns relative direction vector of given weapon for the given vehicle
- BIS_fnc_weaponsEntityTypeReturn object's weapons as defined in config. Scans also turrets and pylons.