BIS fnc itemType: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(detailed weapon category description)
m (pf)
Line 1: Line 1:
{{Function|= Comments
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________
Line 8: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Returns item category and type.
*'''Can return:'''
*Weapon / VehicleWeapon
**AssaultRifle
**BombLauncher
**Cannon
**GrenadeLauncher
**Handgun
**Launcher
**MachineGun
**Magazine
**MissileLauncher
**Mortar
**RocketLauncher
**Shotgun
**Throw
**Rifle
**SubmachineGun
**SniperRifle
*VehicleWeapon
**Horn
**CounterMeasuresLauncher
**LaserDesignator
*Item
**AccessoryMuzzle
**AccessoryPointer
**AccessorySights
**AccessoryBipod
**Binocular
**Compass
**FirstAidKit
**GPS
**LaserDesignator
**Map
**Medikit
**MineDetector
**NVGoggles
**Radio
**Toolkit
**UAVTerminal
**VehicleWeapon
**Unknown
**UnknownEquipment
**UnknownWeapon
**Watch
*Equipment
**Glasses
**Headgear
**Vest
**Uniform
**Backpack
*Magazine
**Artillery
**Bullet
**CounterMeasures
**Flare
**Grenade
**Laser
**Missile
**Rocket
**Shell
**ShotgunShell
**SmokeShell
**UnknownMagazine
*Mine
**Mine
**MineBounding
**MineDirectional|= Description


Description:
____________________________________________________________________________________________
Return item category and type. Recognized types are:


Weapon / VehicleWeapon
| weaponClass call [[BIS_fnc_itemType]] |= Syntax
AssaultRifle
____________________________________________________________________________________________
BombLauncher
Cannon
GrenadeLauncher
Handgun
Launcher
MachineGun
Magazine
MissileLauncher
Mortar
RocketLauncher
Shotgun
Throw
Rifle
SubmachineGun
SniperRifle
VehicleWeapon
Horn
CounterMeasuresLauncher
LaserDesignator
Item
AccessoryMuzzle
AccessoryPointer
AccessorySights
                        AccessoryBipod
Binocular
Compass
FirstAidKit
GPS
LaserDesignator
Map
Medikit
MineDetector
NVGoggles
Radio
Toolkit
UAVTerminal
VehicleWeapon
Unknown
UnknownEquipment
UnknownWeapon
Watch
Equipment
Glasses
Headgear
Vest
Uniform
Backpack
Magazine
Artillery
Bullet
CounterMeasures
Flare
Grenade
Laser
Missile
Rocket
Shell
ShotgunShell
SmokeShell
UnknownMagazine
Mine
Mine
MineBounding
MineDirectional
 
Parameter(s):
0: STRING - item class
 
Returns:
ARRAY in format [category,type]
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
|p1= weaponClass: [[String]] - Weapon's class name|= Parameter 1
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_itemType]]; --> |= Syntax
| [[Array]] in format
 
*0: category
|p1= |= Parameter 1
*1: type|= Return value
 
| |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code></code> |=  
|x1= <code>"arifle_MX_pointer_F" [[call]] [[BIS_fnc_itemType]];</code> |=
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| [[currentWeapon]] |= See also
 
}}
}}



Revision as of 00:50, 31 May 2018

Hover & click on the images for description

Description

Description:
Returns item category and type.
  • Can return:
  • Weapon / VehicleWeapon
    • AssaultRifle
    • BombLauncher
    • Cannon
    • GrenadeLauncher
    • Handgun
    • Launcher
    • MachineGun
    • Magazine
    • MissileLauncher
    • Mortar
    • RocketLauncher
    • Shotgun
    • Throw
    • Rifle
    • SubmachineGun
    • SniperRifle
  • VehicleWeapon
    • Horn
    • CounterMeasuresLauncher
    • LaserDesignator
  • Item
    • AccessoryMuzzle
    • AccessoryPointer
    • AccessorySights
    • AccessoryBipod
    • Binocular
    • Compass
    • FirstAidKit
    • GPS
    • LaserDesignator
    • Map
    • Medikit
    • MineDetector
    • NVGoggles
    • Radio
    • Toolkit
    • UAVTerminal
    • VehicleWeapon
    • Unknown
    • UnknownEquipment
    • UnknownWeapon
    • Watch
  • Equipment
    • Glasses
    • Headgear
    • Vest
    • Uniform
    • Backpack
  • Magazine
    • Artillery
    • Bullet
    • CounterMeasures
    • Flare
    • Grenade
    • Laser
    • Missile
    • Rocket
    • Shell
    • ShotgunShell
    • SmokeShell
    • UnknownMagazine
  • Mine
    • Mine
    • MineBounding
    • MineDirectional
Execution:
call
Groups:
Uncategorised

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:
"arifle_MX_pointer_F" call BIS_fnc_itemType;

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

Notes

Posted on May 14, 2017
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).


Bottom Section