ACE3/addons/atragmx/functions/fnc_save_gun.sqf
Phyma ffaa195fe5 Conform function headers to coding guidelines (#5255)
* Fixed headers to work with silentspike python script

* Fixed rest of the files

* Fixed ace-team
2017-06-08 15:31:51 +02:00

29 lines
450 B
Plaintext

/*
* Author: Ruthberg
* Saves the currently select gun profile into the profileNamespace
*
* Arguments:
* None
*
* Return Value:
* None
*
* Example:
* call ace_atragmx_fnc_save_gun
*
* Public: No
*/
#include "script_component.hpp"
private ["_index"];
_index = 0 max (lbCurSel 6000);
GVAR(gunList) set [_index, +GVAR(workingMemory)];
lbClear 6000;
{
lbAdd [6000, _x select 0];
} forEach GVAR(gunList);
call FUNC(store_gun_list);