mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fixed issue with params being incorrectly being parsed in Weaponselect
This commit is contained in:
parent
820d1c50a5
commit
d16a33bee4
@ -4,16 +4,20 @@
|
||||
* Display Grenade information on grenade throw.
|
||||
*
|
||||
* Argument:
|
||||
* 0: Unit <OBJECT>
|
||||
* 1: Weapon <STRING>
|
||||
* 2: Magazine <STRING>
|
||||
* 0: unit - Object the event handler is assigned to <OBJECT>
|
||||
* 1: weapon - Fired weapon <STRING>
|
||||
* 2: muzzle - Muzzle that was used <STRING>
|
||||
* 3: mode - Current mode of the fired weapon <STRING>
|
||||
* 4: ammo - Ammo used <STRING>
|
||||
* 5: magazine - magazine name which was used <STRING>
|
||||
* 6: projectile - Object of the projectile that was shot <OBJECT>
|
||||
*
|
||||
* Return value:
|
||||
* None
|
||||
*/
|
||||
#include "script_component.hpp"
|
||||
|
||||
params ["_unit", "_weapon", "_magazine"];
|
||||
params ["_unit", "_weapon", "", "", "", "_magazine"];
|
||||
|
||||
if (_weapon != "Throw") exitWith {};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user