Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Altis_Life.Altis/core/functions/fn_loadGear.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
private _itemArray = life_gear;
waitUntil {!(isNull (findDisplay 46))};

if (isSwitchingWeapon player) exitWith {}; //If a player switches weapons during setUnitLoadout's function, he will lose everything.

[] call life_fnc_stripDownPlayer;

if (_itemArray isEqualTo []) exitWith {[] call life_fnc_startLoadout;};
Expand Down