fn vbs getMagazines (VBS2)
From Bohemia Interactive Community
| Editors, please check Policy: Scripting Command Page Syntax. |
Click on the images for descriptions
Introduced in
- Game:
- Virtual Battlespace 2
- Version:
- 1.20
Description
- Description:
- Returns an array of magazines that can be used by the passed weapon. The magazines will be listed as either string classnames, or as config paths, depending on the input syntax.
Syntax
- Syntax:
- weaponClass call fn_vbs_getMagazines
- Parameters:
- weaponClass: String - Classname of weapon to check
- Return Value:
- Array of strings, one for the classname of each usable magazine
Alternative Syntax
- Syntax:
- weaponConfig call fn_vbs_getMagazines
- Parameters:
- weaponConfig: Config - Config of weapon to check
- Return Value:
- Array of configs, one for each usable magazine
Examples
- Example 1:
"vbs2_us_m16a2_iron_gla" call fn_vbs_getMagazines;
- Example 2:
(configFile >> "CfgWeapons" >> "vbs2_us_m16a2_iron_gla") call fn_vbs_getMagazines;
Additional Information
- Multiplayer:
- Behaviour unknown.

