BIS fnc baseWeapon: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
(Added params, syntax, examples.)
Line 8: Line 8:
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Determines base weapon class, with no attachments. |= Description
 
Description:
Return base weapon (i.e., weapon without any attachments)
Parameter(s):
0: STRING - weapon class
Returns:
STRING - weapon class
*/
 
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_baseWeapon]]; --> |= Syntax
| ["weaponName"] call [[BIS_fnc_baseWeapon]]; |= Syntax


|p1= |= Parameter 1
|p1= [[String]] - Weapon classname. |= Parameter 1


| |= Return value
| [[String]] - Weapon classname that features no attachments. |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code></code> |=  
|x1= <code>newGun ["arifle_Mk20_MRCO_pointer_F"] call BIS_fnc_baseWeapon; // Returns "arifle_Mk20_F"</code> |=  
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 20:36, 29 September 2014


Hover & click on the images for description

Description

Description:
Determines base weapon class, with no attachments.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
["weaponName"] call BIS_fnc_baseWeapon;
Parameters:
String - Weapon classname.
Return Value:
String - Weapon classname that features no attachments.

Examples

Example 1:
newGun ["arifle_Mk20_MRCO_pointer_F"] call BIS_fnc_baseWeapon; // Returns "arifle_Mk20_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