mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
parent
c7b804a685
commit
3869c8362f
@ -17,9 +17,16 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
params ["_unit", "_allGear", "_activeWeaponAndMuzzle"];
|
||||
TRACE_3("restoreGear",_unit, count _allGear, _activeWeaponAndMuzzle);
|
||||
|
||||
// restore all gear
|
||||
if (!isNil "_allGear") then {
|
||||
_allGear params ["_primaryWeaponArray"];
|
||||
if ((_primaryWeaponArray param [0, ""]) == "ACE_FakePrimaryWeapon") then {
|
||||
TRACE_1("Ignoring fake gun",_primaryWeaponArray);
|
||||
_allGear set [0, []];
|
||||
_activeWeaponAndMuzzle = nil;
|
||||
};
|
||||
_unit setUnitLoadout _allGear;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user