Use shorter file names for groups

This commit is contained in:
ebaydayz
2016-11-02 17:25:25 -04:00
parent ac99e45854
commit 93a988955f
12 changed files with 10 additions and 10 deletions

View File

@@ -0,0 +1,16 @@
private ["_disbandButton","_display","_group","_kickButton","_myGroup","_target","_uid"];
disableSerialization;
_display = findDisplay 80000;
_myGroup = _display displayCtrl 2;
_kickButton = _display displayCtrl 4;
_disbandButton = _display displayCtrl 5;
_uid = _myGroup lbData (lbCurSel _myGroup);
_group = group player;
_target = _uid call dayz_getPlayer;
if (player == leader _group && {!isNull _target} && {_target != player}) then {
_group selectLeader _target;
{_x ctrlShow false} count [_disbandButton,_kickButton];
};