BIS fnc isThrowable: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *arma3 * * *\| *([0-2]\.[0-9]{2}) * " to "|game1= arma3 |version1= $1 ")
m (Text replacement - "<code> *([^<|{]*) *<\/code>" to "<sqf>$1</sqf>")
 
(8 intermediate revisions by the same user not shown)
Line 8: Line 8:
|descr= Returns true if given magazine is throwable
|descr= Returns true if given magazine is throwable


|s1= magazine [[call]] [[BIS_fnc_isThrowable]]
|s1= magazine call [[BIS_fnc_isThrowable]]


|p1= magazine: [[String]] - magazine class name
|p1= magazine: [[String]] - magazine class name


|r1=[[Boolean]] - [[true]] if throwable
|r1= [[Boolean]] - [[true]] if throwable


|x1= <code>_isThrowable = "SmokeShellGreen" [[call]] [[BIS_fnc_isThrowable]];</code>
|x1= <sqf>private _isThrowable = "SmokeShellGreen" call BIS_fnc_isThrowable;</sqf>


|seealso= [[magazines]], [[currentThrowable]]
|seealso= [[magazines]] [[currentThrowable]]
}}
}}

Latest revision as of 22:44, 12 July 2022

Hover & click on the images for description

Description

Description:
Returns true if given magazine is throwable
Execution:
call
Groups:
Inventory

Syntax

Syntax:
magazine call BIS_fnc_isThrowable
Parameters:
magazine: String - magazine class name
Return Value:
Boolean - true if throwable

Examples

Example 1:
private _isThrowable = "SmokeShellGreen" call BIS_fnc_isThrowable;

Additional Information

See also:
magazines currentThrowable

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