currentThrowable: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
m (Text replacement - "<br><br> {{Feature" to "{{Feature")
Line 9: Line 9:
|gr2= Unit Inventory
|gr2= Unit Inventory


| Returns currently selected throwable, which will be launched if the user presses "G".<br><br>
| Returns currently selected throwable, which will be launched if the user presses "G".{{Feature | Informative | The weapon/magazine id system is W.I.P. and may change without notice.}}
{{Feature | Informative | The weapon/magazine id system is W.I.P. and may change without notice.}}


| [[currentThrowable]] player
| [[currentThrowable]] player

Revision as of 20:36, 9 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
WeaponsUnit Inventory

Syntax

Syntax:
Syntax needed
Parameters:
player: Object
Return Value:
Return value needed

Examples

Example 1:
currentThrowable player; // ["SmokeShellGreen", "SmokeShellGreenMuzzle", [1.00002e+007, 0]]
Example 2:
_ct = currentThrowable player; // ["HandGrenade", "HandGrenadeMuzzle", [1e+007, 0]] _id = (_ct select 2 select 0) - 1e+007; // 18

Additional Information

See also:
currentWeaponcurrentMagazinecurrentMuzzleBIS_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