mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
ffaa195fe5
* Fixed headers to work with silentspike python script * Fixed rest of the files * Fixed ace-team
27 lines
474 B
Plaintext
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
|