BIS fnc classWeapon: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
(Page filling)
Line 1: Line 1:
{{Function|= Comments
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________
Line 8: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>
| Returns class of weapon given by string. |= Description
/*
File: fn_classWeapon.sqf
 
Description:
Returns class of weapon given by string.
Parameter(s):
1: <string> weapon
Returns:
<config class> weapon class readed from config (test success with isClass)
*/
 
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_classWeapon]]; --> |= Syntax
| weaponClass call [[BIS_fnc_classWeapon]] |= Syntax


|p1= |= Parameter 1
|p1= weaponClass: [[String]] |= Parameter 1


| |= Return value
| [[Config]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code></code> |=  
|x1= <code>_weaponConfig = [[currentWeapon]] [[player]] [[call]] [[BIS_fnc_classWeapon]];</code> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| [[BIS fnc classMagazine]], [[isClass]] |= See also
 
}}
}}



Revision as of 22:45, 6 May 2018

Hover & click on the images for description

Description

Description:
Returns class of weapon given by string.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
weaponClass call BIS_fnc_classWeapon
Parameters:
weaponClass: String
Return Value:
Config

Examples

Example 1:
_weaponConfig = currentWeapon player call BIS_fnc_classWeapon;

Additional Information

See also:
BIS fnc classMagazineisClass

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