diff --git a/SQF/dayz_code/Configs/CfgWeapons/Tools/Radio.hpp b/SQF/dayz_code/Configs/CfgWeapons/Tools/Radio.hpp index 780d11312..14d4c3328 100644 --- a/SQF/dayz_code/Configs/CfgWeapons/Tools/Radio.hpp +++ b/SQF/dayz_code/Configs/CfgWeapons/Tools/Radio.hpp @@ -5,7 +5,7 @@ class ItemRadio : ItemCore class Groups { text = $STR_EPOCH_GROUPS_KEY; - script = "spawn dayz_openGroupDialog;"; + script = "if (!isNil 'dayz_groupInit') then {[] spawn dayz_openGroupDialog;};"; }; }; }; \ No newline at end of file diff --git a/SQF/dayz_code/groups/init.sqf b/SQF/dayz_code/groups/init.sqf index c3f1c1225..c22205baa 100644 --- a/SQF/dayz_code/groups/init.sqf +++ b/SQF/dayz_code/groups/init.sqf @@ -1,5 +1,6 @@ private ["_leader","_oldGroup"]; +uiSleep 1; if (count (units group player) > 1) then { [player] joinSilent grpNull; }; diff --git a/SQF/dayz_code/system/progress_monitor.sqf b/SQF/dayz_code/system/progress_monitor.sqf index faadcc9b1..da0ae25b3 100644 --- a/SQF/dayz_code/system/progress_monitor.sqf +++ b/SQF/dayz_code/system/progress_monitor.sqf @@ -12,7 +12,7 @@ while {true} do { if ((!isNil "Dayz_loginCompleted") and {(Dayz_loginCompleted)}) exitWith { //diag_log [ __FILE__, __LINE__, "End loop"]; dayz_playerName = if (alive player) then {name player} else {"unknown"}; - if (dayz_groupSystem) then {call compile preprocessFileLineNumbers "\z\addons\dayz_code\groups\init.sqf";}; + if (dayz_groupSystem) then {execVM "\z\addons\dayz_code\groups\init.sqf";}; }; _display = uiNameSpace getVariable "BIS_loadingScreen"; if ((!isNil "_display") and {(dayz_loadScreenMsg != "" )}) then {