edineygomes Posted January 4, 2018 Posted January 4, 2018 Is there any way through script to change the side of an airport? For example, from the Blue coalition to Red coalition?
Chump Posted January 4, 2018 Posted January 4, 2018 I am not familiar with an easy way to do this. I tried a few things: Looking for a simple Airport.setCoalition() command - NOGO Setting Airbase.getByName("Batumi").coalition - NOGO Setting env.warehouses.airports[12].coalition - NOGO Spawn a hidden ground vehicle on the airport coordinates and capture it - GO My script looked like this using MiST: local airbase = Airbase.getByName("Batumi") if airbase then local point = airbase:getPoint() local groupData = { country = country.id.RUSSIA, category = Group.Category.GROUND, hidden = true, units = { [1] = { x = point.x, y = point.z, type = "BTR-80" } } } mist.dynAdd(groupData) endAnyone else know of a way?
Grimes Posted January 4, 2018 Posted January 4, 2018 Not directly no. You can remove all ground units from a coalition near the base and then any enemy ground unit will "capture" the base once within a set radius of the base. The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
Recommended Posts