ACE3/addons/common/functions/fnc_getDefinedVariableDefault.sqf
Phyma ffaa195fe5 Conform function headers to coding guidelines (#5255)
* Fixed headers to work with silentspike python script

* Fixed rest of the files

* Fixed ace-team
2017-06-08 15:31:51 +02:00

27 lines
474 B
Plaintext

/*
* Author: Glowbal
* Get the variable default value
*
* Arguments:
* 0: Variable Name <STRING>
*
* Return Value:
* Default value of variable <ANY>
*
* Example:
* ["name"] call ace_common_fnc_getDefinedVariableDefault
*
* Public: Yes
*/
#include "script_component.hpp"
params ["_varName"];
private _variableDefinition = _varName call FUNC(getDefinedVariableInfo);
if !(_variableDefinition isEqualTo []) exitWith {
_variableDefinition select 1;
};
nil