mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
35 lines
627 B
Plaintext
35 lines
627 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>
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params ["_name"];
|
|
|
|
private "_value";
|
|
_value = [];
|
|
|
|
{
|
|
if (_x select 0 == _name) exitWith {_value = _x};
|
|
false
|
|
} count GVAR(settings);
|
|
|
|
_value
|