selectThrowable: Difference between revisions
Jump to navigation
Jump to search
m (2.16 -> 2.18) |
Lou Montana (talk | contribs) m (Fix) |
||
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 2.18 | |version1= 2.18 | ||
|gr1= Weapons | |gr1= Weapons | ||
Line 14: | Line 13: | ||
|p1= unit: [[Object]] | |p1= unit: [[Object]] | ||
|p2= throwable: [[String]] - either the name of the throwable magazine or the name of the throwable muzzle | |p2= throwable: [[String]] - either the name of the throwable magazine or the name of the throwable muzzle | ||
Line 19: | Line 19: | ||
|x1= <sqf>player selectThrowable "SmokeShellGreen";</sqf> | |x1= <sqf>player selectThrowable "SmokeShellGreen";</sqf> | ||
|x2= <sqf>player selectThrowable "SmokeShellGreenMuzzle";</sqf> | |x2= <sqf>player selectThrowable "SmokeShellGreenMuzzle";</sqf> | ||
|seealso= [[throwables]] [[isThrowable]] [[currentThrowable]] [[selectWeapon]][[currentWeapon]] [[currentMagazine]] [[currentMuzzle]] [[BIS_fnc_isThrowable]] | |seealso= [[throwables]] [[isThrowable]] [[currentThrowable]] [[selectWeapon]][[currentWeapon]] [[currentMagazine]] [[currentMuzzle]] [[BIS_fnc_isThrowable]] | ||
}} | }} |
Latest revision as of 16:05, 8 October 2024
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:
- Example 2:
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