BIS fnc weaponsEntityType: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
m (Some wiki formatting)
 
(24 intermediate revisions by 5 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 weapons as defined in config. Scans also turrets and pylons.
____________________________________________________________________________________________


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


Description:
|p1= class: [[String]] or [[Array]] of [[String]]s - entity classes
Return object's weapons 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_weaponsEntityType]]; --> |= Syntax
|x1= <sqf>
|p1= |= Parameter 1
["B_Soldier_GL_F"] call BIS_fnc_weaponsEntityType;
// returns e.g ["arifle_MX_GL_ACO_F","hgun_P07_F","Throw","Put"]
</sqf>


| |= Return value
|x2= <sqf>
____________________________________________________________________________________________
"B_Plane_CAS_01_dynamicLoadout_F" call BIS_fnc_weaponsEntityType;
 
/*
|x1= <code></code> |=
returns e.g
____________________________________________________________________________________________
[
 
"Gatling_30mm_Plane_CAS_01_F",
| |= See also
"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"
]
*/
</sqf>


|seealso= [[weapons]] [[weaponsTurret]]
}}
}}
<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:weaponsEntityType}}]]
[[Category:Functions|{{uc:weaponsEntityType}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:weaponsEntityType}}]]

Latest revision as of 12:53, 13 July 2022

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:
Weapons

Syntax

Syntax:
class call BIS_fnc_weaponsEntityType
Parameters:
class: String or Array of Strings - entity classes
Return Value:
Array of Strings

Examples

Example 1:
["B_Soldier_GL_F"] call BIS_fnc_weaponsEntityType; // returns e.g ["arifle_MX_GL_ACO_F","hgun_P07_F","Throw","Put"]
Example 2:
"B_Plane_CAS_01_dynamicLoadout_F" call BIS_fnc_weaponsEntityType; /* returns e.g [ "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:
weapons weaponsTurret

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