BIS fnc magazinesEntityType: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(19 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
| arma3 | | |game1= arma3 | ||
|version1= 1.00 | |||
| | |gr1= Weapons | ||
| | |descr= Return object's magazines as defined in config. Scans also turrets and pylons. | ||
| | |s1= class call [[BIS_fnc_magazinesEntityType]] | ||
| class | |p1= class: [[String]] - object class | ||
| | |r1= [[Array]] of [[String]]s | ||
| [ | |x1= <sqf> | ||
"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" | |||
] | |||
*/ | |||
</sqf> | |||
| | |seealso= [[magazines]] | ||
}} | }} | ||
Latest revision as of 23:51, 24 April 2024
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