Add delay before group update

This commit is contained in:
ebaydayz
2016-10-28 21:24:03 -04:00
parent dbb9e97efc
commit 127be2472d
3 changed files with 10 additions and 8 deletions

View File

@@ -22,10 +22,12 @@ if (!isNull _inviter) then {
_oldGroup = group player;
[player] join (group _inviter);
if (count (units _oldGroup) == 0) then {deleteGroup _oldGroup;};
// Update saved group in DB
PVDZ_Server_UpdateGroup = [1,player];
publicVariableServer "PVDZ_Server_UpdateGroup";
[] spawn {
uiSleep 1; //Required for group change to update on server
// Update saved group in DB
PVDZ_Server_UpdateGroup = [1,player];
publicVariableServer "PVDZ_Server_UpdateGroup";
};
} else {
_this ctrlShow false;
systemChat localize "STR_EPOCH_INVITE_EXPIRED";