BIS fnc compatibleMagazines: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Function|= Comments " to "{{Function|Comments= ")
No edit summary
Line 45: Line 45:
[[Category:Functions|{{uc:compatibleMagazines}}]]
[[Category:Functions|{{uc:compatibleMagazines}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:compatibleMagazines}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:compatibleMagazines}}]]
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on September 1, 2020 - 18:59 (UTC)</dd>
<dt class="note">[[User:pierremgi|pierremgi]]</dt>
<dd class="note">
This function returns all magazines in lower case.<br>
<code>currentMagazine player [[in]] (currentWeapon player call BIS_fnc_compatibleMagazines) // never work</code>
example:<br>
[[currentMagazine]] player // "30Rnd_762x39_AK12_Mag_F"<br>
[[currentWeapon]] player call BIS_fnc_compatibleMagazines  // ["30rnd_762x39_ak12_mag_f",....]<br>
</dd>
</dl>
<!-- DISCONTINUE Notes -->

Revision as of 20:59, 1 September 2020

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",....]