BIS_fnc_compatibleMagazines

From Bohemia Interactive Community
Revision as of 19:59, 1 September 2020 by PierreMGI (talk | contribs)
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
/*
	bis_fnc_compatibleMagazines

	Get all compatibile magazines for selected weapons. Function looks both for magazines listed in "magazines" array & compatibile magazineWells

	Input:
		0: (String) :
			Weapon class name
		1: (Bool) [Optional] :
			Decide if magazines with scope 1 should be also returned

	Output:
		Array of magazines (strings)

	Example:
		["arifle_mx_f"] call bis_fnc_compatibleMagazines;
compatibleMagazines
	Author: reyhard
*/
Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[] call BIS_fnc_compatibleMagazines
Parameters:
parameter: Datatype - (Optional, default defValue) description
Return Value:
Datatype - description

Examples

Example 1:

Additional Information

See also:
See also needed

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
Posted on September 1, 2020 - 18:59 (UTC)
pierremgi
This function returns all magazines in lower case.
currentMagazine player in (currentWeapon player call BIS_fnc_compatibleMagazines) // never work example:
currentMagazine player // "30Rnd_762x39_AK12_Mag_F"
currentWeapon player call BIS_fnc_compatibleMagazines // ["30rnd_762x39_ak12_mag_f",....]