From Bohemia Interactive Community
Hover & click on the images for description
Description
- Description:
- Returns all throwables in unit inventory in currentThrowable format.
- Groups:
- WeaponsUnit Inventory
Syntax
- Syntax:
- throwables unit
- Parameters:
- unit: Object
- Return Value:
- Array of Arrays with [magazineName, muzzleName, id, ammoCount]
- magazineName: String
- muzzleName: String
- id: Array with [itemWorldID, creatorID]
- itemWorldID: Number - unique ID of the item in the world
- creatorID: Number - unique ID of the player who created the item
- ammoCount: Number magazine ammo (Since Arma 3 2.22)
- Syntax:
- throwables [unit, includeEmpty]
- Parameters:
- unit: Object
- includeEmpty: Boolean - (Optional, default: false) when true returns empty throwables as well.
- Return Value:
- Array of Arrays with [magazineName, muzzleName, id, ammoCount]
- magazineName: String
- muzzleName: String
- id: Array with [itemWorldID, creatorID]
- itemWorldID: Number - unique ID of the item in the world
- creatorID: Number - unique ID of the player who created the item
- ammoCount: Number magazine ammo (Since Arma 3 2.22)
Examples
- Example 1:
Additional Information
- See also:
- selectThrowable currentThrowable isThrowable selectWeapon currentWeapon currentMagazine currentMuzzle BIS_fnc_isThrowable
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here!
Add Note