Arma 3 Scripting

throwables

  • Arma 3 v2.18

Command · also in Unit Inventory · Markdown · JSON · original wiki page

Description

Returns all throwables in unit inventory in currentThrowable format.

Syntax

Syntax 1

throwables unit

Parameters:

Returns: Array of Arrays with [magazineName, muzzleName, id, ammoCount]

Syntax 2

since arma3 2.22

throwables [unit, includeEmpty]

Parameters:

Returns: Array of Arrays with [magazineName, muzzleName, id, ammoCount]

Examples

Example 1

throwables player;
/*
    [
        ["HandGrenade","HandGrenadeMuzzle",[1e+007,0],1],
        ["SmokeShell","SmokeShellMuzzle",[1e+007,0],1],
        ["SmokeShellGreen","SmokeShellGreenMuzzle",[1e+007,0],1],
        ["Chemlight_green","ChemlightGreenMuzzle",[1e+007,0],1],
        ["Chemlight_green","",[1e+007,0],1],
        ["HandGrenade","",[1e+007,0],1]
    ]
*/

See also

selectThrowable · currentThrowable · isThrowable · selectWeapon · currentWeapon · currentMagazine · currentMuzzle · BIS_fnc_isThrowable