fn vbs getMuzzles (VBS2)

From Bohemia Interactive Community

Jump to: navigation, search
Editors, please check Policy: Scripting Command Page Syntax.
Introduced in Virtual Battlespace 2 version 1.20

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.

Notes

Notes

+ Add Note

Only post proven facts here. Use the talk page or the forums for discussions.

Notes

Bottom Section

Personal tools
Buy ArmA now!