mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
24 lines
537 B
Plaintext
24 lines
537 B
Plaintext
#include "script_component.hpp"
|
|
|
|
// Inventory context menu action to repack magazines
|
|
[
|
|
"#Magazine",
|
|
["CONTAINER", "MAGAZINE"],
|
|
LSTRING(RepackMagazines),
|
|
[],
|
|
QPATHTOEF(common,UI\repack_ca.paa),
|
|
[
|
|
{true},
|
|
{
|
|
params ["_unit", "", "_magazine"];
|
|
|
|
[_unit, _magazine] call FUNC(canRepackMagazine)
|
|
}
|
|
],
|
|
{
|
|
params ["_unit", "", "_magazine"];
|
|
|
|
[_unit, _unit, _magazine] call FUNC(startRepackingMagazine);
|
|
}
|
|
] call CBA_fnc_addItemContextMenuOption;
|