2015-02-03 03:43:23 +00:00
|
|
|
/*
|
|
|
|
* Author: CAA-Picard
|
|
|
|
* Returns the metadata of a setting if it exists
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Name of the setting (String)
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Setting Data (Array)
|
|
|
|
* 0: _name
|
|
|
|
* 1: _typeName
|
|
|
|
* 2: _isClientSetable
|
|
|
|
* 3: _localizedName
|
|
|
|
* 4: _localizedDescription
|
|
|
|
* 5: _possibleValues
|
|
|
|
* 6: _isForced
|
2015-02-03 04:03:26 +00:00
|
|
|
* 7: _defaultValue
|
2015-02-03 03:43:23 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
EXPLODE_1_PVT(_this,_name);
|
|
|
|
|
2015-02-03 05:37:13 +00:00
|
|
|
private ["_value"];
|
|
|
|
_value = [];
|
2015-02-03 03:43:23 +00:00
|
|
|
{
|
|
|
|
if ((_x select 0) == _name) exitWith {_value = _x};
|
|
|
|
} forEach GVAR(settings);
|
|
|
|
|
|
|
|
_value
|