Skip to content

Commit

Permalink
Disarming - Add quantity to ace_disarming_dropItems event (#8232)
Browse files Browse the repository at this point in the history
Co-authored-by: jonpas <jonpas33@gmail.com>
  • Loading branch information
Vdauphin and jonpas authored Oct 11, 2021
1 parent 81b4c27 commit ec12ee2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion addons/disarming/functions/fnc_openDisarmDialog.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,15 @@ GVAR(disarmTarget) = _target;

if (isNull GVAR(disarmTarget)) exitWith {ERROR("disarmTarget is null");};

private _textRight = "";
for "_i" from 0 to (lbSize _idc) - 1 do {
if (lbData [_idc, _i] isEqualTo _data) exitWith {
_textRight = lbTextRight [_idc, _i];
};
};

TRACE_2("Debug: Droping %1 from %2",_data,GVAR(disarmTarget));
[QGVAR(dropItems), [ACE_player, GVAR(disarmTarget), [_data]], [GVAR(disarmTarget)]] call CBA_fnc_targetEvent;
[QGVAR(dropItems), [ACE_player, GVAR(disarmTarget), [_data], parseNumber _textRight], [GVAR(disarmTarget)]] call CBA_fnc_targetEvent;

false //not sure what this does
}];
Expand Down

0 comments on commit ec12ee2

Please sign in to comment.