mirror of
https://github.com/Defent/DMS_Exile.git
synced 2024-08-30 16:52:12 +00:00
Group Leader fix
This commit is contained in:
parent
10f20aa270
commit
b130b134c7
@ -80,6 +80,14 @@ if(DMS_RemoveNVG) then
|
||||
_unit unlinkItem "NVGoggles";
|
||||
};
|
||||
|
||||
// credit: https://github.com/SMVampire/VEMF/
|
||||
if (((count (units group _unit)) > 1) && {(leader group _unit) == _unit}) then
|
||||
{
|
||||
_grpUnits = units group _unit;
|
||||
_grpUnits = _grpUnits - [_unit];
|
||||
(group _unit) selectLeader (_grpUnits call BIS_fnc_selectRandom);
|
||||
};
|
||||
|
||||
|
||||
|
||||
if ((!isNull _playerObj) && {(getPlayerUID _playerObj) != ""}) then
|
||||
|
Loading…
Reference in New Issue
Block a user