Commit 63c412ed authored by rufix's avatar rufix

Replace all kinds of GPS items

parent 8a48f237
......@@ -2,7 +2,13 @@
params ["_unit", "_array"];
private _gps = selectRandom _array;
_unit unlinkItem "ItemGPS";
if ((_x isKindOf ["ItemGPS", configFile >> "CfgWeapons"]) or (_x isKindOf ["UavTerminal_base", configFile >> "CfgWeapons"])) exitWith {
_unit unlinkItem _x;
} count (assignedItems _unit);
if (_gps != "") then {
_unit linkItem _gps;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment