2015-09-20 22:28:25 +00:00
|
|
|
/*
|
|
|
|
* Author: Glowbal
|
|
|
|
* Get the variable default value
|
2015-01-16 23:21:47 +00:00
|
|
|
*
|
2015-09-20 22:28:25 +00:00
|
|
|
* Arguments:
|
|
|
|
* 0: Variable Name <STRING>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Default value of variable <ANY>
|
|
|
|
*
|
|
|
|
* Public: Yes
|
2015-01-16 23:21:47 +00:00
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-09-20 22:28:25 +00:00
|
|
|
params ["_varName"];
|
|
|
|
|
2015-01-16 23:21:47 +00:00
|
|
|
private "_variableDefinition";
|
2015-09-20 22:28:25 +00:00
|
|
|
_variableDefinition = [_varName] call FUNC(getDefinedVariableInfo);
|
|
|
|
|
2015-11-30 16:14:05 +00:00
|
|
|
if !(_variableDefinition isEqualTo []) exitWith {
|
2015-01-18 19:09:19 +00:00
|
|
|
_variableDefinition select 1;
|
2015-01-16 23:21:47 +00:00
|
|
|
};
|
|
|
|
|
2015-09-20 22:28:25 +00:00
|
|
|
nil
|