Jump to content

Recommended Posts

Posted

Does anyone know where I can find the class names for all the air bases. They should look something like this

AIRBASE.Caucasus.Krymsk

So for an example on Caucasus that would be the Krymsk airbase.

Posted

The airbase object does not contain a table of maps or valid airbases on a given map. However you can easily iterate the airbases via world.getAirbases() to return a list of them.

 

local ab = world.getAirbases()

for i, obj in pairs(ab) do

env.info(Airbase.getTypeName(obj))

end

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

  • 1 month later...
  • 3 months later...
Posted

hey there.

how do i use this command? do i need to display a message box, can i use this script live in ME, do i need to dump into a text file? is there a way to show the value of the "ab" array?

thx

  • Recently Browsing   0 members

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