Skip to content

Commit 5fdddef

Browse files
committed
Merge branch 'development-feature-groupReset' into development
2 parents 870b979 + 4b2af98 commit 5fdddef

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

source/initHQ/HQaddactions.sqf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ if (isServer) then {
1010

1111
if (!isServer) then {
1212
_hq addaction ["<t color='#00b7ff'>Rest</t>","savegameClient.sqf", "", 0, true, true, "", "_this == player"];
13-
};
13+
};
14+
15+
_hq addaction ["<t color='#00FFFF'>RESET SQUAD LEADER</t>","utilities\groupReset.sqf", "", 0, true, true, "", "_this == player"];

source/utilities/groupReset.sqf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
grp = group player;
2+
[player] join grpNull;
3+
ld = leader grp;
4+
[ld] join grpNull;
5+
player joinAsSilent [grp,1];
6+
grp selectLeader player;
7+
[ld] joinSilent grp;

0 commit comments

Comments
 (0)