mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
e35d3dab49
*Added missing privates *Solutions are now automatically calculated on target/gun selection
29 lines
494 B
Plaintext
29 lines
494 B
Plaintext
/*
|
|
* Author: Ruthberg
|
|
* Saves the currently select gun profile into the profileNamespace
|
|
*
|
|
* Arguments:
|
|
* Nothing
|
|
*
|
|
* Return Value:
|
|
* Nothing
|
|
*
|
|
* Example:
|
|
* call ace_atragmx_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);
|
|
|
|
profileNamespace setVariable ["ACE_ATragMX_gunList", GVAR(gunList)];
|