ACE3/addons/atragmx/functions/fnc_save_gun.sqf

28 lines
438 B
Plaintext
Raw Normal View History

#include "script_component.hpp"
/*
* Author: Ruthberg
* Saves the currently select gun profile into the profileNamespace
*
* Arguments:
* None
*
* Return Value:
* None
*
* Example:
2016-07-20 04:15:18 +00:00
* call ace_atragmx_fnc_save_gun
*
* Public: No
*/
private _index = 0 max (lbCurSel 6000);
GVAR(gunList) set [_index, +GVAR(workingMemory)];
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);
call FUNC(store_gun_list);