Skip to content

Commit 369d2af

Browse files
committed
Added function to reload the group's ammunition and weaponary
Known possible side-effects include resetting human player's loadouts
1 parent 292f428 commit 369d2af

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

source/INIT.sqf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ for[{_x = 2},{_x <= 20},{_x = _x + 1}] do {
282282

283283

284284
_dynam = [player,"DynamicSupportMenu"] call BIS_fnc_addCommMenuItem;
285+
hq_blu1 addaction ["<t color='#2fff14'>TEST_RELOAD_GROUP</t>","reloadGroup.sqf", "", 6, true, true, "", "_this == player"];
285286

286287
//Loading player position and gear.
287288
//TODO: Add bought supports.

source/reloadGroup.sqf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
_loadout = getUnitLoadout typeOf _x ;
3+
_x setUnitLoadout _loadout;
4+
} forEach units group player;

0 commit comments

Comments
 (0)