BIS fnc weaponsEntityType: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|Game version=" to "|Game version= |gr1= Configs |GROUP1=")
m (Text replacement - "\[\[Category\:Function Group\: Configs(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "")
Line 51: Line 51:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Configs|{{uc:weaponsEntityType}}]]
 
[[Category:Functions|{{uc:weaponsEntityType}}]]
[[Category:Functions|{{uc:weaponsEntityType}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:weaponsEntityType}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:weaponsEntityType}}]]

Revision as of 13:59, 12 October 2020


Hover & click on the images for description

Description

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

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

Notes

Bottom Section