UAV Refit
To command the RTB, open the UAV terminal, connect to the UAV and hit the RTB for Refit button.
This system only supports one UAV at a time right now.
Concept:
This works by the UAV flying to a configurable position (0,0 by default) and then "exiting" the Area of Operations (AO).
The aircraft despawns and then reappears after being refit a configurable time later (30 minutes by default).
This is intended to simulate the UAV flying back to a base or FARP outside the AO. This will allow UAVs to be useful on maps without airfields, or in areas where the airfield is contested.
To configure the spot where the aircraft leaves the AO and how long the refit takes, copy the code below into the init.sqf of your mission and modify them as appropriate.
Multiplayer:
This addon works in Single player and on dedicated server (I assume MP also).
The addon needs to run on both clients and the server (the server is responsible for bringing the UAV back, that way if someone orders a refit and they log off, the plane still comes back)
Credit & Thanks
Huge thanks to icdb / cineafx for the use of his UI.
I designed this addon to be operable with his awesome and under-rated UAV Keybinds addon: https://steamcommunity.com/sharedfiles/filedetails/?id=1631723641
Thanks to Roqarr & HateAndCaffeine for concepts and support.
GitHub: https://github.com/FatLurch/UAV_Refit
BIS Forum: https://forums.bohemia.net/forums/topic/228212-uav-refit/
Thanks!