ACE3/addons/atragmx/functions/fnc_save_gun.sqf

14 lines
347 B
Plaintext
Raw Normal View History

#include "script_component.hpp"
private ["_index"];
_index = 0 max (lbCurSel 6000);
GVAR(ATragMX_gunList) set [_index, +(GVAR(ATragMX_workingMemory) select GVAR(ATragMX_currentTarget))];
lbClear 6000;
{
lbAdd [6000, _x select 0];
} forEach GVAR(ATragMX_gunList);
profileNamespace setVariable ["GVAR(ATragMX_gunList)", GVAR(ATragMX_gunList)];