BIS fnc itemType: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - ">Posted on May ([0-9]{2}), ([0-9]{4})" to ">Posted on $2-05-$1") |
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *W([a-z ])" to "$1 - w$2") |
||
Line 86: | Line 86: | ||
|s1= weaponClass call [[BIS_fnc_itemType]] | |s1= weaponClass call [[BIS_fnc_itemType]] | ||
|p1= weaponClass: [[String]] - | |p1= weaponClass: [[String]] - weapon's class name | ||
|r1= [[Array]] in format | |r1= [[Array]] in format |
Latest revision as of 17:35, 8 November 2023
Description
- Description:
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
- Execution:
- call
- Groups:
- Inventory
Syntax
- Syntax:
- weaponClass call BIS_fnc_itemType
- Parameters:
- weaponClass: String - weapon's class name
- Return Value:
- Array in format
- 0: category
- 1: type
Examples
- Example 1:
Additional Information
- See also:
- currentWeapon
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
- Posted on 2017-05-14
- Demellion
-
More detailed description about some specific Weapons and Vehicle Weapons:
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).