Arma 3 Scripting

BIS_fnc_itemType

  • Arma 3 v1.08

Function · Markdown · JSON · original wiki page

Description

Important

Be very careful with this function as certain mods modify the categories making this function unreliable!

Returns item category and type.

Weapon / VehicleWeapon VehicleWeapon Item Equipment Magazine Mine
- AssaultRifle
- BombLauncher
- Cannon
- GrenadeLauncher
- Handgun
- Launcher
- MachineGun
- Magazine
- MissileLauncher
- Mortar
- RocketLauncher
- Shotgun
- Throw
- Rifle
- SubmachineGun
- SniperRifle
- Horn
- CounterMeasuresLauncher
- LaserDesignator
- AccessoryMuzzle
- AccessoryPointer
- AccessorySights
- AccessoryBipod
- Binocular
- Compass
- FirstAidKit
- GPS
- LaserDesignator
- Map
- Medikit
- MineDetector
- NVGoggles
- Radio
- Toolkit
- UAVTerminal
- VehicleWeapon
- Unknown
- UnknownEquipment
- UnknownWeapon
- Watch
- Glasses
- Headgear
- Vest
- Uniform
- Backpack
- Artillery
- Bullet
- CounterMeasures
- Flare
- Grenade
- Laser
- Missile
- Rocket
- Shell
- ShotgunShell
- SmokeShell
- UnknownMagazine
- Mine
- MineBounding
- MineDirectional

Syntax

weaponClass call BIS_fnc_itemType

Parameters:

Returns: Array of Strings format [category, type]

Examples

Example 1

"arifle_MX_pointer_F" call BIS_fnc_itemType;

See also

currentWeapon

Community notes

Demellion

More detailed description about some specific Weapons and Vehicle Weapons:

Weapon Description
GrenadeLauncher Underbarrel and HGLs.
BombLauncher Aircraft bomb throw weapons.
MissileLauncher Guided missile weapons (alike Titan series).
RocketLauncher Non-guided missile weapons (alike RPG32).
Cannon Main vehicle turret (alike tank cannon).
Throw Throw-like weapons (grenade weapon, melee weapons from mods, etc).