throwables: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) No edit summary |
Killzone Kid (talk | contribs) No edit summary |
||
Line 15: | Line 15: | ||
|p1= unit: [[Object]] | |p1= unit: [[Object]] | ||
|r1= [[Array]] - array of throwables in format [[magazineName, muzzleName, id], ...], where: | |r1= [[Array]] - array of throwables in format [<nowiki>[</nowiki>magazineName, muzzleName, id], ...], where: | ||
* magazineName: [[String]] | * magazineName: [[String]] | ||
* muzzleName: [[String]] | * muzzleName: [[String]] |
Revision as of 10:42, 13 April 2024
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