isThrowable: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{RV|type=command |game1= arma3 |version1= 2.16 |branch= dev |gr1= Weapons |gr2= Unit Inventory |descr= Returns true is the given magazine is a throwable. |s1= isTh...")
 
m (Text replacement - "↵|version1= 2.18↵↵|branch= dev↵" to " |version1= 2.18 ")
 
(5 intermediate revisions by 4 users not shown)
Line 2: Line 2:


|game1= arma3
|game1= arma3
|version1= 2.16
|version1= 2.18
|branch= dev


|gr1= Weapons
|gr1= Weapons
Line 9: Line 8:
|gr2= Unit Inventory
|gr2= Unit Inventory


|descr= Returns [[true]] is the given magazine is a throwable.
|descr= Returns [[true]] if the given magazine is a throwable.


|s1= [[isThrowable]] magazine
|s1= [[isThrowable]] magazine
Line 15: Line 14:
|p1= magazine: [[String]]
|p1= magazine: [[String]]


|r1= [[boolean]] - [[true]] if throwable
|r1= [[Boolean]] - [[true]] if throwable
 
|x1= <sqf>isThrowable "HandGrenade"; // true</sqf>


|x1= <sqf>isThrowable "HandGrenade"; //true
|seealso= [[selectThrowable]] [[currentThrowable]] [[throwables]] [[selectWeapon]] [[currentWeapon]] [[currentMagazine]] [[currentMuzzle]] [[BIS_fnc_isThrowable]]
|seealso= [[selectThrowable]] [[currentThrowable]] [[throwables]] [[selectWeapon]] [[currentWeapon]] [[currentMagazine]] [[currentMuzzle]] [[BIS_fnc_isThrowable]]
}}
}}

Latest revision as of 16:08, 8 October 2024

Hover & click on the images for description

Description

Description:
Returns true if the given magazine is a throwable.
Groups:
WeaponsUnit Inventory

Syntax

Syntax:
isThrowable magazine
Parameters:
magazine: String
Return Value:
Boolean - true if throwable

Examples

Example 1:
isThrowable "HandGrenade"; // true

Additional Information

See also:
selectThrowable currentThrowable throwables selectWeapon currentWeapon currentMagazine currentMuzzle BIS_fnc_isThrowable

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