mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
74de646a02
Several medical AI fixes - Not applying splints if too many medications were taken - Potential nil for _target - Setting could add multiple EH, require mission restart
32 lines
985 B
Plaintext
32 lines
985 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),
|
|
"LIST",
|
|
[LSTRING(requireItems_title), LSTRING(requireItems_desc)],
|
|
_categoryArray,
|
|
[
|
|
[0, 1, 2],
|
|
[LELSTRING(Common,Disabled), LELSTRING(Common,Enabled), format ["%1 - %2", LELSTRING(Common,Enabled), LLSTRING(requireItems_autoReplaceItems)]],
|
|
0
|
|
],
|
|
true, // isGlobal
|
|
{[QGVAR(requireItems), _this] call EFUNC(common,cbaSettings_settingChanged)},
|
|
true // Needs mission restart
|
|
] call CBA_fnc_addSetting;
|