BIS fnc weaponsEntityType: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "| arma3|1.00|" to "| arma3 |1.00 |")
m (Some wiki formatting)
Line 1: Line 1:
{{RV|type=function
{{RV|type=function
| arma3
|1.00


|gr1= Weapons| Return object's weapons as defined in config. Scans also turrets and pylons.| class [[call]] [[BIS_fnc_weaponsEntityType]]|p1= class: [[String]] or [[Array]] with string - Class of entity| [[Array]] with strings|x1= <code><nowiki>[</nowiki>"B_Soldier_GL_F"] [[call]] [[BIS_fnc_weaponsEntityType]];
|game1= arma3
|version1= 1.00


Returns ["arifle_MX_GL_ACO_F","hgun_P07_F","Throw","Put"]</code>|x2= <code><nowiki></nowiki>"B_Plane_CAS_01_dynamicLoadout_F" [[call]] [[BIS_fnc_weaponsEntityType]];
|gr1= Weapons


Returns
|descr= Return object's weapons as defined in config. Scans also turrets and pylons.
[
 
  "Gatling_30mm_Plane_CAS_01_F",
|s1= class call [[BIS_fnc_weaponsEntityType]]
  "Laserdesignator_pilotCamera",
 
  "CMFlareLauncher",
|p1= class: [[String]] or [[Array]] of [[String]] - entity classes
  "Missile_AA_04_Plane_CAS_01_F",
 
  "Rocket_04_HE_Plane_CAS_01_F",
|r1= [[Array]] with strings
  "Missile_AGM_02_Plane_CAS_01_F",
 
  "Bomb_04_Plane_CAS_01_F",
|x1= <code>[<nowiki/>"B_Soldier_GL_F"] [[call]] [[BIS_fnc_weaponsEntityType]];
  "Rocket_04_AP_Plane_CAS_01_F"
{{cc|returns e.g ["arifle_MX_GL_ACO_F","hgun_P07_F","Throw","Put"]}}</code>
]</code>|}}
 
|x2= <code>"B_Plane_CAS_01_dynamicLoadout_F" [[call]] [[BIS_fnc_weaponsEntityType]];
{{codecomment|/*
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"
]
<nowiki/>*/}}</code>
 
|seealso=
}}

Revision as of 14:10, 13 June 2021

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 String - entity classes
Return Value:
Array with 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:
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