isThrowable: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Some wiki formatting)
Line 3: Line 3:
|game1= arma3
|game1= arma3
|version1= 2.16
|version1= 2.16
|branch= dev
|branch= dev


Line 17: Line 18:
|r1= [[boolean]] - [[true]] if throwable
|r1= [[boolean]] - [[true]] if throwable


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

Revision as of 12:16, 23 November 2023

Hover & click on the images for description
Only available in Development branch(es) until its release with Arma 3 patch v2.16.

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