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 [magazineClassName, muzzleClassName, [magazineId, creatorId]] | |r1= [[Array]] in format [magazineClassName, muzzleClassName, [magazineId, creatorId], ammoCount] (ammoCount added since 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:09, 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 [magazineClassName, muzzleClassName, [magazineId, creatorId], ammoCount] (ammoCount added since 2.22)
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