2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2015-04-11 21:40:46 +00:00
|
|
|
/*
|
|
|
|
* Author: Ruthberg
|
|
|
|
* Saves the currently select gun profile into the profileNamespace
|
|
|
|
*
|
|
|
|
* Arguments:
|
2017-06-08 13:31:51 +00:00
|
|
|
* None
|
2015-04-11 21:40:46 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
2017-06-08 13:31:51 +00:00
|
|
|
* None
|
2015-04-11 21:40:46 +00:00
|
|
|
*
|
|
|
|
* Example:
|
2016-07-20 04:15:18 +00:00
|
|
|
* call ace_atragmx_fnc_save_gun
|
2015-04-11 21:40:46 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2015-04-06 13:51:59 +00:00
|
|
|
|
2017-10-10 14:39:59 +00:00
|
|
|
private _index = 0 max (lbCurSel 6000);
|
2015-04-06 13:51:59 +00:00
|
|
|
|
2015-04-16 16:14:32 +00:00
|
|
|
GVAR(gunList) set [_index, +GVAR(workingMemory)];
|
2015-04-06 13:51:59 +00:00
|
|
|
|
|
|
|
lbClear 6000;
|
|
|
|
{
|
2015-04-07 20:44:26 +00:00
|
|
|
lbAdd [6000, _x select 0];
|
2015-04-08 09:05:28 +00:00
|
|
|
} forEach GVAR(gunList);
|
2015-04-06 13:51:59 +00:00
|
|
|
|
2016-11-06 18:30:18 +00:00
|
|
|
call FUNC(store_gun_list);
|