BIS fnc magazinesEntityType: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 7: | Line 6: | ||
|gr1= Weapons |GROUP1= | |gr1= Weapons |GROUP1= | ||
| Return object's magazines as defined in config. Scans also turrets and pylons. |Description= | | Return object's magazines as defined in config. Scans also turrets and pylons. |Description= | ||
| class call [[BIS_fnc_magazinesEntityType]] |Syntax= | | class call [[BIS_fnc_magazinesEntityType]] |Syntax= | ||
Line 17: | Line 14: | ||
| [[Array]] of [[String|strings]] |Return value= | | [[Array]] of [[String|strings]] |Return value= | ||
|x1= <code>"O_MBT_04_cannon_F" [[call]] [[BIS_fnc_magazinesEntityType]]; | |x1= <code>"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"]</code>|Example 1= | //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"]</code>|Example 1= | ||
| [[magazines]] |See also= | | [[magazines]] |See also= |
Revision as of 00:23, 17 January 2021
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