BIS fnc weaponsEntityType: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[[cC]ategory:[fF]unctions\|\{\{uc:[a-z A-Z_]*\}\}\]\]" to "") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
|game1= arma3 | |||
|version1= 1.00 | |||
|gr1= Weapons | |||
|descr= Return object's weapons as defined in config. Scans also turrets and pylons. | |||
|s1= class call [[BIS_fnc_weaponsEntityType]] | |||
[[ | |p1= class: [[String]] or [[Array]] of [[String]]s - entity classes | ||
|r1= [[Array]] of [[String]]s | |||
|x1= <sqf> | |||
["B_Soldier_GL_F"] call BIS_fnc_weaponsEntityType; | |||
// returns e.g ["arifle_MX_GL_ACO_F","hgun_P07_F","Throw","Put"] | |||
</sqf> | |||
|x2= <sqf> | |||
"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" | |||
] | |||
*/ | |||
</sqf> | |||
|seealso= [[weapons]] [[weaponsTurret]] | |||
}} |
Latest revision as of 12:53, 13 July 2022
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