currentThrowable: Difference between revisions
Killzone Kid (talk | contribs) No edit summary |
Killzone Kid (talk | contribs) No edit summary |
||
Line 14: | Line 14: | ||
|p1= unit: [[Object]] | |p1= unit: [[Object]] | ||
|r1= [[Array]] in format [ | |r1= [[Array]] - in format [magazineName, muzzleName, id, ammoCount], where: | ||
* magazineName: [[String]] | |||
* muzzleName: [[String]] | |||
* id: [[Array]] of [[Number]] pairs: [itemWorldID, creatorID] | |||
* ammoCount: [[Number]] magazine ammo (Since Arma 3 2.22) | |||
|x1= <sqf>currentThrowable player; // ["SmokeShellGreen", "SmokeShellGreenMuzzle", [1.00002e+007, 0]]</sqf> | |x1= <sqf>currentThrowable player; // ["SmokeShellGreen", "SmokeShellGreenMuzzle", [1.00002e+007, 0]]</sqf> |
Revision as of 23:12, 1 September 2025
Description
- Description:
- Returns currently selected throwable (and the muzzle it is loaded into), which will be launched if the user presses G.
- Groups:
- WeaponsUnit Inventory
Syntax
- Syntax:
- currentThrowable unit
- Parameters:
- unit: Object
- Return Value:
- Array - in format [magazineName, muzzleName, id, ammoCount], where:
Examples
- Example 1:
- Example 2:
Additional Information
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