ACE3/addons/optionsmenu/functions/fnc_moduleAllowConfigExport.sqf

28 lines
408 B
Plaintext
Raw Normal View History

2015-04-05 00:17:43 +00:00
/*
* Author: Glowbal
*
*
* Arguments:
* None
2015-04-05 00:17:43 +00:00
*
* Return Value:
* None
*
* Example:
* call ace_optionsmenu_fnc_moduleAllowConfigExport
*
2015-04-05 00:17:43 +00:00
* Public: No
*/
#include "script_component.hpp"
params ["_logic"];
2015-04-05 00:17:43 +00:00
2015-11-30 16:14:05 +00:00
if (isMultiplayer) exitWith {};
2015-04-05 00:17:43 +00:00
if (_logic getVariable ["allowconfigurationExport", false]) then {
2015-04-05 00:33:45 +00:00
GVAR(serverConfigGeneration) = 1;
2015-04-05 00:17:43 +00:00
} else {
2015-04-05 00:33:45 +00:00
GVAR(serverConfigGeneration) = 0;
2015-04-05 00:17:43 +00:00
};