throwables: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "<sqf>([^↵][^<]*↵[^<]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
Line 20: Line 20:
* id: [[Array]] of [[Number]] pairs: [itemWorldID, creatorID]
* id: [[Array]] of [[Number]] pairs: [itemWorldID, creatorID]


|x1= <sqf>throwables player;
|x1= <sqf>
throwables player;
/*
/*
[
[
Line 30: Line 31:
["HandGrenade","",[1e+007,0]]
["HandGrenade","",[1e+007,0]]
]
]
*/</sqf>
*/
</sqf>


|seealso= [[selectThrowable]] [[currentThrowable]] [[isThrowable]] [[selectWeapon]] [[currentWeapon]] [[currentMagazine]] [[currentMuzzle]] [[BIS_fnc_isThrowable]]
|seealso= [[selectThrowable]] [[currentThrowable]] [[isThrowable]] [[selectWeapon]] [[currentWeapon]] [[currentMagazine]] [[currentMuzzle]] [[BIS_fnc_isThrowable]]
}}
}}

Latest revision as of 20:42, 3 September 2024

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

Description

Description:
Returns all throwables in unit inventory in currentThrowable format.
Groups:
WeaponsUnit Inventory

Syntax

Syntax:
throwables unit
Parameters:
unit: Object
Return Value:
Array - array of throwables in format [[magazineName, muzzleName, id], ...], where:

Examples

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

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 or on the Forums.
Only post proven facts here! Add Note