ACE3/addons/common/functions/fnc_getDefinedVariableDefault.sqf
2015-01-17 00:21:47 +01:00

19 lines
401 B
Plaintext

/**
* fn_getvariableDefault.sqf
* @Descr: Get the variable default value
* @Author: Glowbal
*
* @Arguments: [variableName STRING]
* @Return: ANY
* @PublicAPI: true
*/
#include "script_component.hpp"
private "_variableDefinition";
_variableDefinition = ([_this select 0] call FUNC(getDefinedVariableInfo));
if (count _variableDefinition > 0) exitwith {
_variableDefinition select 1;
};
nil;