- sleep 3;
- while {true} do
- {
- _unit = player
- _dist1= _unit distance Medtent;
- _dist2= _unit distance Silver;
- _mags = magazines _unit;
- if((_dist 1 >= 15 && _dist 2 >= 15) && ("ACE_Medkit" in _mags)) then
- {
- hint "Attempting to remove medkit.";
- _unit removeMagazines "ACE_Medkit";
- [_unit, "MAG", "ACE_Medkit", -1] call ACE_fnc_RemoveGear;
- };
- sleep .5;
- };