ACE3/addons/optionsmenu/functions/fnc_moduleAllowConfigExport.sqf

26 lines
367 B
Plaintext
Raw Normal View History

2015-04-05 00:17:43 +00:00
/*
* Author: Glowbal
*
*
* Arguments:
* none
*
* Return Value:
* None
*
* Public: No
*/
#include "script_component.hpp"
private ["_logic"];
_logic = _this select 0;
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
};