ACE3/addons/common/functions/fnc_getSettingData.sqf

38 lines
688 B
Plaintext
Raw Permalink Normal View History

#include "..\script_component.hpp"
/*
2015-03-24 04:18:00 +00:00
* Author: esteldunedain
* Returns the metadata of a setting if it exists
*
* Arguments:
2015-09-21 11:08:10 +00:00
* 0: Setting Name <STRING>
*
* Return Value:
* 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>
*
* Example:
* ["setting"] call ace_common_fnc_getSettingData
*
* Public: No
*/
2015-09-21 11:08:10 +00:00
params ["_name"];
scopeName "main";
2015-09-21 11:08:10 +00:00
{
if (_x select 0 == _name) then {
_x breakOut "main";
};
} forEach GVAR(settings);
[]