mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
25b8fd6d54
* Medical AI - Add setting to require items for treatment * all ivs * invert setting * Update addons/medical_ai/stringtable.xml Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com> * move item hash to preStart --------- Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
26 lines
723 B
Plaintext
26 lines
723 B
Plaintext
private _categoryArray = [ELSTRING(medical,Category), "STR_TEAM_SWITCH_AI"];
|
|
|
|
[
|
|
QGVAR(enabledFor), "LIST",
|
|
[LLSTRING(enableFor_title), LLSTRING(enableFor_desc)],
|
|
_categoryArray,
|
|
[
|
|
[0, 1, 2],
|
|
[LELSTRING(Common,Disabled), LLSTRING(enabledFor_OnlyServerAndHC), LELSTRING(Common,Enabled)],
|
|
2
|
|
],
|
|
true, // isGlobal
|
|
{[QGVAR(enabledFor), _this] call EFUNC(common,cbaSettings_settingChanged)},
|
|
true // Needs mission restart
|
|
] call CBA_fnc_addSetting;
|
|
|
|
[
|
|
QGVAR(requireItems), "CHECKBOX",
|
|
[LSTRING(requireItems_title), LSTRING(requireItems_desc)],
|
|
_categoryArray,
|
|
false,
|
|
true, // isGlobal
|
|
{},
|
|
true // Needs mission restart
|
|
] call CBA_fnc_addSetting;
|