ACE3/addons/medical_vitals/initSettings.inc.sqf

16 lines
563 B
Plaintext
Raw Normal View History

[
QGVAR(simulateSpO2),
"CHECKBOX",
[LSTRING(simulateSpO2_DisplayName), LSTRING(simulateSpO2_Description)],
[ELSTRING(medical,Category), LSTRING(SubCategory)],
true,
1,
{
2024-08-04 13:38:42 +00:00
if (_this || {!(GETEGVAR(medical,enabled,false))}) exitWith {}; // skip if true or if medical system disabled
{
_x setVariable [VAR_OXYGEN_DEMAND, 0, true];
_x setVariable [VAR_SPO2, DEFAULT_SPO2, true];
} forEach (allUnits select {local _x})
} // reset oxygen demand on setting change
] call CBA_fnc_addSetting;