mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-20 18:36:29 +03:00
Auto promote group leader after changing clothes
This commit is contained in:
@@ -3,6 +3,10 @@ private ["_add","_inviter","_recipient","_uid","_unit"];
|
||||
_add = _this select 0;
|
||||
_uid = _this select 1;
|
||||
|
||||
if (typeName _add == "OBJECT") exitWith {
|
||||
(group player) selectLeader _add;
|
||||
};
|
||||
|
||||
// Update active invites on all machines with the change
|
||||
if (_add) then {
|
||||
_inviter = _uid select 0;
|
||||
|
||||
@@ -10,6 +10,12 @@ if (_event < 3) then {
|
||||
uiSleep 1;
|
||||
};
|
||||
|
||||
if (_event == -1) exitWith {
|
||||
//Promote _player
|
||||
PVDZ_groupInvite = [_player,0];
|
||||
(owner (leader group _player)) publicVariableClient "PVDZ_groupInvite";
|
||||
};
|
||||
|
||||
_groupUIDs = [];
|
||||
{
|
||||
if (alive _x && isPlayer _x) then {
|
||||
|
||||
Reference in New Issue
Block a user