Add delay at group startup

This commit is contained in:
ebaydayz
2016-11-05 19:18:51 -04:00
parent eaebdb7d93
commit 754fc3744e
3 changed files with 3 additions and 2 deletions

View File

@@ -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;};";
};
};
};

View File

@@ -1,5 +1,6 @@
private ["_leader","_oldGroup"];
uiSleep 1;
if (count (units group player) > 1) then {
[player] joinSilent grpNull;
};

View File

@@ -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 {