mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
25 lines
426 B
Plaintext
25 lines
426 B
Plaintext
/*
|
|
* Author: Glowbal
|
|
* Get the variable default value
|
|
*
|
|
* Arguments:
|
|
* 0: Variable Name <STRING>
|
|
*
|
|
* Return Value:
|
|
* Default value of variable <ANY>
|
|
*
|
|
* Public: Yes
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params ["_varName"];
|
|
|
|
private "_variableDefinition";
|
|
_variableDefinition = [_varName] call FUNC(getDefinedVariableInfo);
|
|
|
|
if !(_variableDefinition isEqualTo []) exitWith {
|
|
_variableDefinition select 1;
|
|
};
|
|
|
|
nil
|