mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
742626ff1a
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
27 lines
479 B
Plaintext
27 lines
479 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* 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
|
|
*/
|
|
|
|
params ["_varName"];
|
|
|
|
private _variableDefinition = _varName call FUNC(getDefinedVariableInfo);
|
|
|
|
if (_variableDefinition isNotEqualTo []) exitWith {
|
|
_variableDefinition select 1;
|
|
};
|
|
|
|
nil
|