Wizard1393 Posted April 16, 2019 Posted April 16, 2019 How would one procure a table with airbase names? Function world.getAirbases() only returns airbase ID's right? GPU: PALIT NVIDIA RTX 3080 10GB | CPU: Intel Core i7-9700K @ 4,9GHz | RAM: 64GB DDR4 3000MHz VR: HP Reverb G2 | HOTAS: TM Warthog Throttle and Stick OS: Windows 10 22H2
funkyfranky Posted April 16, 2019 Posted April 16, 2019 https://wiki.hoggitworld.com/view/DCS_func_getAirbases returns a table of airbase objects https://wiki.hoggitworld.com/view/DCS_Class_Airbase So you can use getName(), i.e. something like -- get airbases of coalition local ab=coalition.getAirbases(coalition.side.BLUE) -- loop over airbases for _,airbase in pairs(ab) do local _id=airbase:getID() local _p=airbase:getPosition().p local _name=airbase:getName() -- your stuff end A warrior's mission is to foster the success of others. i9-12900K | RTX 4090 | 128 GB Ram 3200 MHz DDR-4 | Quest 3 RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss
dmatsch Posted April 16, 2019 Posted April 16, 2019 does anyone please just have a list of the airbase names for use in things like MOOSE?
HC_Official Posted April 16, 2019 Posted April 16, 2019 download and open the MOOSE.lua file (do a search), it has sections for each terrain and a list of all the airbases on it No more pre-orders Click here for tutorials for using Virpil Hardware and Software Click here for Virpil Flight equipment dimensions and pictures. .
Recommended Posts