selectThrowable: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{RV|type=command |game1= arma3 |version1= 2.16 |branch= dev |gr1= Weapons |gr2= Unit Inventory |descr= Selects current throwable, which will be lau...")
 
m (2.16 -> 2.18)
 
(2 intermediate revisions by one other user not shown)
Line 2: Line 2:


|game1= arma3
|game1= arma3
|version1= 2.16
|version1= 2.18
|branch= dev
|branch= dev


Line 21: Line 21:
|x2= <sqf>player selectThrowable "SmokeShellGreenMuzzle";</sqf>
|x2= <sqf>player selectThrowable "SmokeShellGreenMuzzle";</sqf>


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

Latest revision as of 16:12, 8 February 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:
Selects current throwable, which will be launched if the user presses G.
Groups:
WeaponsUnit Inventory

Syntax

Syntax:
unit selectThrowable throwable
Parameters:
unit: Object
throwable: String - either the name of the throwable magazine or the name of the throwable muzzle
Return Value:
Boolean - true on success

Examples

Example 1:
player selectThrowable "SmokeShellGreen";
Example 2:
player selectThrowable "SmokeShellGreenMuzzle";

Additional Information

See also:
throwables isThrowable currentThrowable selectWeaponcurrentWeapon 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