mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-26 01:31:51 +03:00
Use shorter file names for groups
This commit is contained in:
17
SQF/dayz_code/groups/disband.sqf
Normal file
17
SQF/dayz_code/groups/disband.sqf
Normal file
@@ -0,0 +1,17 @@
|
||||
private "_group";
|
||||
|
||||
_group = group player;
|
||||
if (count (units _group) == 1 or (!isNil "dayz_groupDisbandThread" && {!scriptDone dayz_groupDisbandThread})) exitWith {};
|
||||
|
||||
dayz_groupDisbanded = nil;
|
||||
PVDZ_Server_UpdateGroup = [4,player];
|
||||
publicVariableServer "PVDZ_Server_UpdateGroup";
|
||||
|
||||
dayz_groupDisbandThread = _group spawn {
|
||||
//Wait for response from server to confirm group finished updating in DB
|
||||
waitUntil {!isNil "dayz_groupDisbanded"};
|
||||
|
||||
{[_x] joinSilent grpNull} count (units _this);
|
||||
deleteGroup _this;
|
||||
dayz_myGroup = [];
|
||||
};
|
||||
Reference in New Issue
Block a user