BIS fnc weaponsEntityType: 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 8: | Line 7: | ||
|gr1= Weapons |GROUP1= | |gr1= Weapons |GROUP1= | ||
| Return object's weapons as defined in config. Scans also turrets and pylons. |DESCRIPTION= | | Return object's weapons as defined in config. Scans also turrets and pylons. |DESCRIPTION= | ||
| class [[call]] [[BIS_fnc_weaponsEntityType]] |SYNTAX= | | class [[call]] [[BIS_fnc_weaponsEntityType]] |SYNTAX= | ||
Line 18: | Line 15: | ||
| [[Array]] with strings|RETURNVALUE= | | [[Array]] with strings|RETURNVALUE= | ||
|x1= <code><nowiki>[</nowiki>"B_Soldier_GL_F"] [[call]] [[BIS_fnc_weaponsEntityType]]; | |x1= <code><nowiki>[</nowiki>"B_Soldier_GL_F"] [[call]] [[BIS_fnc_weaponsEntityType]]; | ||
Line 37: | Line 33: | ||
"Rocket_04_AP_Plane_CAS_01_F" | "Rocket_04_AP_Plane_CAS_01_F" | ||
]</code> |EXAMPLE2= | ]</code> |EXAMPLE2= | ||
| |SEEALSO= | | |SEEALSO= |
Revision as of 01:05, 17 January 2021
Description
- Description:
- Return object's weapons as defined in config. Scans also turrets and pylons.
- Execution:
- call
- Groups:
- Weapons
Syntax
- Syntax:
- class call BIS_fnc_weaponsEntityType
- Parameters:
- class: String or Array with string - Class of entity
- Return Value:
- Array with strings
Examples
- Example 1:
["B_Soldier_GL_F"] call BIS_fnc_weaponsEntityType; Returns ["arifle_MX_GL_ACO_F","hgun_P07_F","Throw","Put"]
- Example 2:
"B_Plane_CAS_01_dynamicLoadout_F" call BIS_fnc_weaponsEntityType; Returns [ "Gatling_30mm_Plane_CAS_01_F", "Laserdesignator_pilotCamera", "CMFlareLauncher", "Missile_AA_04_Plane_CAS_01_F", "Rocket_04_HE_Plane_CAS_01_F", "Missile_AGM_02_Plane_CAS_01_F", "Bomb_04_Plane_CAS_01_F", "Rocket_04_AP_Plane_CAS_01_F" ]
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