ACE3/addons/common/functions/fnc_getSettingData.sqf
Phyma ffaa195fe5 Conform function headers to coding guidelines (#5255)
* Fixed headers to work with silentspike python script

* Fixed rest of the files

* Fixed ace-team
2017-06-08 15:31:51 +02:00

39 lines
693 B
Plaintext

/*
* Author: esteldunedain
* Returns the metadata of a setting if it exists
*
* Arguments:
* 0: Setting Name <STRING>
*
* Return Value:
* Setting Data <ARRAY>
* 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
*/
#include "script_component.hpp"
params ["_name"];
scopeName "main";
{
if (_x select 0 == _name) then {
_x breakOut "main";
};
false
} count GVAR(settings);
[]