Description
Returns all throwables in unit inventory in currentThrowable format.
Syntax
Syntax 1
throwables unit
Parameters:
unit: Object
Returns: Array of Arrays with [magazineName, muzzleName, id, ammoCount]
- magazineName: String
- muzzleName: String
- id: Array with [itemWorldID, creatorID]
- ammoCount: Number magazine ammo (Since Arma 3 2.22)
Syntax 2
since arma3 2.22
throwables [unit, includeEmpty]
Parameters:
unit: ObjectincludeEmpty: Boolean - (Optional, default: false) when true returns empty throwables as well.
Returns: Array of Arrays with [magazineName, muzzleName, id, ammoCount]
- magazineName: String
- muzzleName: String
- id: Array with [itemWorldID, creatorID]
- ammoCount: Number magazine ammo (Since Arma 3 2.22)
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