Jump to content

Recommended Posts

Posted

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)
end

Anyone else know of a way?

Posted

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 ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...