/* * Author: esteldunedain * Returns the metadata of a setting if it exists * * Arguments: * 0: Setting Name * * Return Value: * Setting Data (Array) * 0: Name * 1: Type Name * 2: Is Client Settable * 3: Localized Name * 4: Localized Description * 5: Possible Values * 6: Is Forced * 7: Default Value * 8: Localized Category * * Public: No */ #include "script_component.hpp" params ["_name"]; private "_value"; _value = []; { if (_x select 0 == _name) exitWith {_value = _x}; false } count GVAR(settings); _value