mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
75f7ed7532
* Utilize isNotEqualTo * undo changes to some files * redo some changes, fix based on @Vdauphin 's comment * fix validator issues Co-authored-by: PabstMirror <pabstmirror@gmail.com>
27 lines
476 B
Plaintext
27 lines
476 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
|