Arma 3 Scripting

Function in Weapons

BIS_fnc_weaponsEntityType

Also available as Markdown and JSON, or read the original wiki page.

Description

Return object's weapons as defined in config. Scans also turrets and pylons.

Syntax

class call BIS_fnc_weaponsEntityType

Parameters:

Returns: 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"
    ]
*/

See also

weapons · weaponsTurret