BIS fnc weaponsEntityType: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision imported: BIS Functions update 1/7)
(filled page)
Line 8: Line 8:
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Return object's weapons as defined in config. Scans also turrets and pylons. |= Description
Author:
____________________________________________________________________________________________
Karel Moricky
 
| class [[call]] [[BIS_fnc_weaponsEntityType]] |= Syntax


Description:
|p1= class: [[String]] or [[Array]] with string - Class of entity |= Parameter 1
Return object's weapons as defined in config. Scans also turrets and pylons.
Parameter(s):
0: STRING - object class
Returns:
ARRAY of STRINGs
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
| [[Array]] with strings|= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_weaponsEntityType]]; --> |= Syntax
|x1= <code><nowiki>[</nowiki>"B_Soldier_GL_F"] [[call]] [[BIS_fnc_weaponsEntityType]];
|p1= |= Parameter 1
 
Returns ["arifle_MX_GL_ACO_F","hgun_P07_F","Throw","Put"]</code> |= Example 1


| |= Return value
|x2= <code><nowiki>[</nowiki>"B_Plane_CAS_01_dynamicLoadout_F" [[call]] [[BIS_fnc_weaponsEntityType]];
____________________________________________________________________________________________


|x1= <code></code> |=  
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"
]</code> |= Example 2
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 02:13, 5 April 2018


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:
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

Notes

Bottom Section