fn vbs getModes (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 modes that can be used by the passed weapon muzzle. The modes will be listed as either string classnames, or as config paths, depending on the input syntax.

Syntax

Syntax:
muzzleConfig call fn_vbs_getModes
Parameters:
muzzleConfig: Config - Config pointing to muzzle or weapon to check
Return Value:
Array of configs, one for each mode

Alternative Syntax

Syntax:
["weapon class", "muzzle class"] call fn_vbs_getModes
Parameters:
weapon class: String - Classname of weapon
muzzle class: String - Classname of muzzle. Identical to weapon classname for weapons with no muzzles.
Return Value:
Array of strings, one for each mode

Examples

Example 1:
(configFile >> "CfgWeapons" >> "vbs2_us_m16a2_iron_gla" >> "vbs2_M203_Muzzle") call fn_vbs_getModes 
Example 2:
["vbs2_us_m16a2_iron_gla","vbs2_M203_Muzzle"] call fn_vbs_getModes  
Example 3:
["vbs2_us_m16a2_iron_none","vbs2_us_m16a2_iron_none"] call fn_vbs_getModes 

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!