BIS fnc magazinesEntityType: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision imported: BIS Functions update 1/7)
m (Some wiki formatting)
 
(25 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 1.00


| arma3 |= Game name
|gr1= Weapons


|1.00|= Game version
|descr= Return object's magazines as defined in config. Scans also turrets and pylons.
____________________________________________________________________________________________


| <pre>/*
|s1= class call [[BIS_fnc_magazinesEntityType]]
Author:
Karel Moricky


Description:
|p1= class: [[String]] - object class
Return object's magazines as defined in config. Scans also turrets and pylons.
Parameter(s):
0: STRING - object class
Returns:
ARRAY of STRINGs
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
|r1= [[Array]] of [[String]]s
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_magazinesEntityType]]; --> |= Syntax
|x1= <sqf>
|p1= |= Parameter 1
"O_MBT_04_cannon_F" call BIS_fnc_magazinesEntityType;
 
/*
| |= Return value
returns
____________________________________________________________________________________________
[
 
"20Rnd_125mm_APFSDS_T_Green",
|x1= <code></code> |=
"12Rnd_125mm_HEAT_T_Green",
____________________________________________________________________________________________
"12Rnd_125mm_HE_T_Green",
 
"1000Rnd_762x51_Belt_Green",
| |= See also
"1000Rnd_762x51_Belt_Green",
"500Rnd_127x99_mag_Tracer_Yellow",
"SmokeLauncherMag"
]
*/
</sqf>


|seealso= [[magazines]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Configs|{{uc:magazinesEntityType}}]]
[[Category:Functions|{{uc:magazinesEntityType}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:magazinesEntityType}}]]

Latest revision as of 23:51, 24 April 2024

Hover & click on the images for description

Description

Description:
Return object's magazines as defined in config. Scans also turrets and pylons.
Execution:
call
Groups:
Weapons

Syntax

Syntax:
class call BIS_fnc_magazinesEntityType
Parameters:
class: String - object class
Return Value:
Array of Strings

Examples

Example 1:
"O_MBT_04_cannon_F" call BIS_fnc_magazinesEntityType; /* returns [ "20Rnd_125mm_APFSDS_T_Green", "12Rnd_125mm_HEAT_T_Green", "12Rnd_125mm_HE_T_Green", "1000Rnd_762x51_Belt_Green", "1000Rnd_762x51_Belt_Green", "500Rnd_127x99_mag_Tracer_Yellow", "SmokeLauncherMag" ] */

Additional Information

See also:
magazines

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