Jump to content

Is there a better way to tell when flight scene is stabilized?


Recommended Posts

I need to know when the flight scene is stabilized, and so far the only way I have figured out is the following:

if (FlightGlobals.fetch.activeVessel.ctrlState.mainThrottle > 0) {

KSP doesn't set the throttle to 50% until everything is go for launch.  Is there a better way?  I'm concerned that if there is another mod which sets the throttle to 0 for launch, it might happen before mine and I would never know everything is stable.

This is for a simulation mod, which is always launched from inside the editor.

Thanks

Link to comment
Share on other sites

On 2/16/2016 at 8:45 AM, sarbian said:

Have you tried


if (FlightGlobals.ready) {...}

?

Yes, and it wasn't really ready.  Planet exploded :-)

I'm going to try what @crzyrndm suggested.

Right now, I have a workaround by watching the throttle, but this would be better

Thanks to both you and Crzyrndm for the suggestions

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...