BIS fnc weaponsEntityType: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\{\{ *codecomment *\| *([^}]+) *\}\}" to "$1") |
Lou Montana (talk | contribs) m (Text replacement - "\{\{ *cc*\| *([^}]+) *\}\}" to "// $1") |
||
Line 15: | Line 15: | ||
|x1= <code>[<nowiki/>"B_Soldier_GL_F"] [[call]] [[BIS_fnc_weaponsEntityType]]; | |x1= <code>[<nowiki/>"B_Soldier_GL_F"] [[call]] [[BIS_fnc_weaponsEntityType]]; | ||
// returns e.g ["arifle_MX_GL_ACO_F","hgun_P07_F","Throw","Put"]</code> | |||
|x2= <code>"B_Plane_CAS_01_dynamicLoadout_F" [[call]] [[BIS_fnc_weaponsEntityType]]; | |x2= <code>"B_Plane_CAS_01_dynamicLoadout_F" [[call]] [[BIS_fnc_weaponsEntityType]]; |
Revision as of 12:02, 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 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