VR Flight Guy in PJ Pants Posted September 11, 2021 Posted September 11, 2021 Inspired by a recent "tactical low-level flight" racing "mini-game", I wish to know how to obtain continuously the AGL information for any aircraft flying. I guess the process of stop getting the information recording is not that hard. Thanks in advanced. I Fly, Therefore I Am. One cannot go around not saying "Thank you" every time these days, can't you? YouTube: https://www.youtube.com/channel/UCc9BDi-STaqgWsjNiHbW0fA
Grimes Posted September 11, 2021 Posted September 11, 2021 It is pretty simple, you need to get the position of the unit, then the height ground level is at that position, and then subtract the difference. If you have the F-14 the "time trial" missions use it to log AGL stats of your aircraft. if Unit.getByName('whatever') then local pos = Unit.getByName('whatever'):getPoint() local agl = pos.y - land.getHeight({x = pos.x, y = pos.z}) -- do whatver you want with agl value end 2 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
VR Flight Guy in PJ Pants Posted September 12, 2021 Author Posted September 12, 2021 I don't have the "time trial" missions for F-14 but I shall give the code fragment a try. Thank you. BTW, where can I get the said mission file? I Fly, Therefore I Am. One cannot go around not saying "Thank you" every time these days, can't you? YouTube: https://www.youtube.com/channel/UCc9BDi-STaqgWsjNiHbW0fA
Grimes Posted September 12, 2021 Posted September 12, 2021 HB F14A Rioni River Run Time Trial.miz Its just in the F-14 missions folder. 1 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