Auto promote group leader after changing clothes

This commit is contained in:
ebaydayz
2016-10-31 18:11:28 -04:00
parent f21b5b74a7
commit bff0e3281a
3 changed files with 17 additions and 1 deletions

View File

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