Orbiter-Forum  

Go Back   Orbiter-Forum > Orbiter Space Flight Simulator > Orbiter SDK
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Orbiter SDK Orbiter software developers post your questions and answers about the SDK, the API interface, LUA, meshing, etc.

Reply
 
Thread Tools
Old 08-11-2017, 09:46 PM   #1
Topper
Addon Developer

Default get gear status

Hello, is there any workaround to get the gear status of a vessel if it's retracted or not? I havn't seen an api method to get it. I think it's because it's a general "animation" without anything special, but there is also an api method "doubleVESSEL::GetWheelbrakeLevel". For the Deltaglieder, this returns the same value no matter if the gear is retracted or not... I want to retract the gear automaticly which is possible with *VESSEL->SendBufferedKey(OAPI_KEY_G), but I only want to do this if the gear is not allready down.
Topper is offline   Reply With Quote
Old 08-12-2017, 08:18 AM   #2
Face
Beta Tester
 
Face's Avatar

Default

Quote:
Originally Posted by Topper View Post
 Hello, is there any workaround to get the gear status of a vessel if it's retracted or not? I havn't seen an api method to get it. I think it's because it's a general "animation" without anything special, but there is also an api method "doubleVESSEL::GetWheelbrakeLevel". For the Deltaglieder, this returns the same value no matter if the gear is retracted or not... I want to retract the gear automaticly which is possible with *VESSEL->SendBufferedKey(OAPI_KEY_G), but I only want to do this if the gear is not allready down.
I know of 2 workarounds:
  1. Hook into RecordEvent and listen for the GEAR tag.
  2. Save the vessel state by means of clbkSaveState() and a temporary file, then parse the file for the GEAR tag.

I used both in OMP, but eventually settled on the second option for some application reasons.
Face is offline   Reply With Quote
Thanked by:
Reply

  Orbiter-Forum > Orbiter Space Flight Simulator > Orbiter SDK


Thread Tools

Posting Rules
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


All times are GMT. The time now is 08:07 AM.

Quick Links Need Help?


About Us | Rules & Guidelines | TOS Policy | Privacy Policy

Orbiter-Forum is hosted at Orbithangar.com
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright 2007 - 2017, Orbiter-Forum.com. All rights reserved.