Jump to content

Airbase, new scripting function getRunways for Airbase DCS object


Recommended Posts

Hi,

 

I saw a new function getRunways for Airbase object in DCS Scripting function, without documentation.

 

This function returns a indexed table started at 1 for each runway of an Airbase with course, center of runway, length and width. course value seems strange because to have the good heading, you must set heading = - course (in rad). The last value is Name strange too.

 

But, you can now define a rectangle for each runway of an airbase. I tested it on Caucasus and Nevada (Nellis) and it's correct 😉

 

Hope that we can have soon ILS, for each side when existing.

 

Pretty cool thanks.

 

Sun

 

 

Link to comment
Share on other sites

Yeah it was returning nothing for a few patches so I never documented it. Since it is working now I add a page for it. 

  • Thanks 1

The right man in the wrong place makes all the difference in the world.

Current Projects: Scripting Wiki, Something...

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread), SLMOD, IADScript, Mission Editing Wiki!, Mission Building Forum

Link to comment
Share on other sites

Great stuff! So far I had to use the runway spawn points to get the directions. But with multiple runways the order of the spawn points was a bit random so it always required a bit adjustment by hand to get it all right.

 

Now what would be the icing on the cake would be an entry in the returned table that tells us, which runway is the active one 🙂

A warrior's mission is to foster the success of others.

i7-8700K | Asus RTX 2080Ti Strix OC | 32 GB Ram 3200 MHz DDR-4 | Asus Maximus Hero X | Samung EVO 960 Pro SSD | VKB Gunfighter Pro | MFG Crosswind | Rift S

RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss

Link to comment
Share on other sites

  • 2 months later...

Hello all. what is the logic regarding defaut activ runway, i used to think first in list returned by getRunways  is defaut except if wind is >3m/s then atc will use reverse RWY in some case. but what is the rule regarding two parallel RWY like Andersen, or Nellis ?   is there a way to know defaut Take Off one, from defaut Landing One regarding order in getRunway, ?

 

[sIGPIC][/sIGPIC]

all my skins :

here

 

Core i7-4790 @ 3.6- 4GHz - 16GB

- nVidia RTX 2070 - 2xSSD -

GRANDIN TV screen 39" in 1920x1080 cockpit scale 1:1

- MS FFB2 Joystick

- DIY MIDI Throttle with 14 analogic sliders and knobs

- Saitek Pro Flight Rudder Pedals

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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