{"name":"BIS_fnc_weaponsEntityType","title":"BIS fnc weaponsEntityType","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_weaponsEntityType","revid":327745,"updated":"2022-07-13T10:53:31Z","groups":["Weapons"],"status":"ok","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","description":"Return object's weapons as defined in config. Scans also turrets and pylons.","syntaxes":[{"syntax":"class call BIS_fnc_weaponsEntityType","params":[{"name":"class","type":"String or Array of Strings","description":"entity classes","type_expr":"String | Array<String>"}],"returns":{"type":"Array of Strings","type_expr":"Array<String>"}}],"examples":[{"code":["[\"B_Soldier_GL_F\"] call BIS_fnc_weaponsEntityType;\n// returns e.g [\"arifle_MX_GL_ACO_F\",\"hgun_P07_F\",\"Throw\",\"Put\"]"]},{"text":"```sqf\n\"B_Plane_CAS_01_dynamicLoadout_F\" call BIS_fnc_weaponsEntityType;\n/*\n    returns e.g\n    [\n        \"Gatling_30mm_Plane_CAS_01_F\",\n        \"Laserdesignator_pilotCamera\",\n        \"CMFlareLauncher\",\n        \"Missile_AA_04_Plane_CAS_01_F\",\n        \"Rocket_04_HE_Plane_CAS_01_F\",\n        \"Missile_AGM_02_Plane_CAS_01_F\",\n        \"Bomb_04_Plane_CAS_01_F\",\n        \"Rocket_04_AP_Plane_CAS_01_F\"\n    ]\n*/\n```","code":["\"B_Plane_CAS_01_dynamicLoadout_F\" call BIS_fnc_weaponsEntityType;\n/*\n\treturns e.g\n\t[\n\t\t\"Gatling_30mm_Plane_CAS_01_F\",\n\t\t\"Laserdesignator_pilotCamera\",\n\t\t\"CMFlareLauncher\",\n\t\t\"Missile_AA_04_Plane_CAS_01_F\",\n\t\t\"Rocket_04_HE_Plane_CAS_01_F\",\n\t\t\"Missile_AGM_02_Plane_CAS_01_F\",\n\t\t\"Bomb_04_Plane_CAS_01_F\",\n\t\t\"Rocket_04_AP_Plane_CAS_01_F\"\n\t]\n*/"]}],"see_also":["weapons","weaponsTurret"]}