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);
|
|
|
|
|
|
|
|
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
|