BIS fnc weaponsEntityType: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (template:command argument fix) |
||
Line 8: | Line 8: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Return object's weapons as defined in config. Scans also turrets and pylons. |= | | Return object's weapons as defined in config. Scans also turrets and pylons. |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| class [[call]] [[BIS_fnc_weaponsEntityType]] |= | | class [[call]] [[BIS_fnc_weaponsEntityType]] |SYNTAX= | ||
|p1= class: [[String]] or [[Array]] with string - Class of entity |= | |p1= class: [[String]] or [[Array]] with string - Class of entity |PARAMETER1= | ||
| [[Array]] with strings|= | | [[Array]] with strings|RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code><nowiki>[</nowiki>"B_Soldier_GL_F"] [[call]] [[BIS_fnc_weaponsEntityType]]; | |x1= <code><nowiki>[</nowiki>"B_Soldier_GL_F"] [[call]] [[BIS_fnc_weaponsEntityType]]; | ||
Returns ["arifle_MX_GL_ACO_F","hgun_P07_F","Throw","Put"]</code> |= | Returns ["arifle_MX_GL_ACO_F","hgun_P07_F","Throw","Put"]</code> |EXAMPLE1= | ||
|x2= <code><nowiki></nowiki>"B_Plane_CAS_01_dynamicLoadout_F" [[call]] [[BIS_fnc_weaponsEntityType]]; | |x2= <code><nowiki></nowiki>"B_Plane_CAS_01_dynamicLoadout_F" [[call]] [[BIS_fnc_weaponsEntityType]]; | ||
Line 34: | Line 34: | ||
"Bomb_04_Plane_CAS_01_F", | "Bomb_04_Plane_CAS_01_F", | ||
"Rocket_04_AP_Plane_CAS_01_F" | "Rocket_04_AP_Plane_CAS_01_F" | ||
]</code> |= | ]</code> |EXAMPLE2= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| |= | | |SEEALSO= | ||
}} | }} |
Revision as of 15:34, 7 April 2019
Description
- Description:
- Return object's weapons as defined in config. Scans also turrets and pylons.
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- class call BIS_fnc_weaponsEntityType
- Parameters:
- class: String or Array with string - Class of entity
- Return Value:
- Array with strings
Examples
- Example 1:
["B_Soldier_GL_F"] call BIS_fnc_weaponsEntityType; Returns ["arifle_MX_GL_ACO_F","hgun_P07_F","Throw","Put"]
- Example 2:
"B_Plane_CAS_01_dynamicLoadout_F" call BIS_fnc_weaponsEntityType; Returns [ "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