fn vbs getMuzzles (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_getMuzzles
- Parameters:
- weaponClass: String - Classname of weapon to check
- Return Value:
- Array of strings, one for the classname of each usable muzzle
Alternative Syntax
- Syntax:
- weaponConfig call fn_vbs_getMuzzles
- Parameters:
- weaponConfig: Config - Config of weapon to check
- Return Value:
- Array of configs, one for each usable muzzle
Examples
- Example 1:
"vbs2_us_m16a2_iron_gla" call fn_vbs_getMuzzles;
- Example 2:
(configFile >> "CfgWeapons" >> "vbs2_us_m16a2_iron_gla") call fn_vbs_getMuzzles;
Additional Information
- Multiplayer:
- Behaviour unknown.

