2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2015-02-03 03:43:23 +00:00
|
|
|
/*
|
2015-03-24 04:18:00 +00:00
|
|
|
* Author: esteldunedain
|
2015-02-03 03:43:23 +00:00
|
|
|
* Returns the metadata of a setting if it exists
|
|
|
|
*
|
|
|
|
* Arguments:
|
2015-09-21 11:08:10 +00:00
|
|
|
* 0: Setting Name <STRING>
|
2015-02-03 03:43:23 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
2017-06-08 13:31:51 +00:00
|
|
|
* Setting Data <ARRAY>
|
2015-09-21 11:08:10 +00:00
|
|
|
* 0: Name <STRING>
|
|
|
|
* 1: Type Name <STRING>
|
|
|
|
* 2: Is Client Settable <BOOL>
|
|
|
|
* 3: Localized Name <STRING>
|
|
|
|
* 4: Localized Description <STRING>
|
|
|
|
* 5: Possible Values <ARRAY>
|
|
|
|
* 6: Is Forced <BOOL>
|
|
|
|
* 7: Default Value <ANY>
|
|
|
|
* 8: Localized Category <STRING>
|
2015-02-03 03:43:23 +00:00
|
|
|
*
|
2017-06-08 13:31:51 +00:00
|
|
|
* Example:
|
|
|
|
* ["setting"] call ace_common_fnc_getSettingData
|
|
|
|
*
|
2015-02-03 03:43:23 +00:00
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
2015-09-21 11:08:10 +00:00
|
|
|
params ["_name"];
|
2015-02-03 03:43:23 +00:00
|
|
|
|
2015-12-12 15:48:54 +00:00
|
|
|
scopeName "main";
|
2015-09-21 11:08:10 +00:00
|
|
|
|
2015-02-03 03:43:23 +00:00
|
|
|
{
|
2015-12-12 15:48:54 +00:00
|
|
|
if (_x select 0 == _name) then {
|
|
|
|
_x breakOut "main";
|
|
|
|
};
|
2024-06-11 15:34:32 +00:00
|
|
|
} forEach GVAR(settings);
|
2015-02-03 03:43:23 +00:00
|
|
|
|
2015-12-12 15:48:54 +00:00
|
|
|
[]
|