Closed MildlyInterested closed 9 months ago
["CAManBase", "Reloaded", { params ["_unit", "", "", "", "_oldMagazine"]; if (isPlayer _unit) exitWith {}; _oldMagazine params ["_type", "_roundsLeft"]; if (isNil "_type" || {_roundsLeft > 0}) exitWith {}; (_type call BIS_fnc_ItemType) params ["_magType", "_magLoadedWith"]; if (_magType != "Magazine" || {!(_magLoadedWith in ["Bullet", "ShotgunShell"])}) exitWith {}; _unit addMagazine _type; }, true, [], true] call CBA_fnc_addClassEventHandler;
https://discord.com/channels/681656029758488619/681675741720608770/831907238918094898
included in 16AA-Common https://github.com/16AA-Milsim/16AA-Common/blob/939d4b7a8824d3589d6caa7882aff02bbd0c0aec/addons/ai/functions/fnc_addMagazineOnReload.sqf
https://discord.com/channels/681656029758488619/681675741720608770/831907238918094898