Files
MissionTemplate/framework/fbcb2_assets/functions/fn_addCBASettings.sqf

27 lines
699 B
Plaintext

#include "..\script_component.hpp"
//---------------------
// Asset Diary and Markers Settings
[
QGVAR(setting_detectionRangeFromBase), // variable
"SLIDER", // type
["Detection Range From Base", "The range from a base that assets will be detected"], // title
[QUOTE(SETTINGS_GROUP_NAME), QUOTE(COMPONENT_BEAUTIFIED)], // category
[0, 1000, 750, 0, false], // [_min, _max, _default, _trailingDecimals, _isPercentage]
true, // global setting
{
params ["_value"];
[
"fbcb2_assets",
"SETTING CHANGED",
[
[
"setting",
"milsim_fbcb2_assets_setting_detectionRangeFromBase"
],
["newValue", _value]
]
] call milsim_util_fnc_log;
}
] call CBA_fnc_addSetting;