Jump to content

Help for a hidden command


Jakey4150

Recommended Posts

Is there a command or module that can be written in a .cfg file so something happens only when a craft’s status is “Landedâ€Â. For example, I want my drill to only start drilling when the craft is landed. This is to keep the add-on as simple has possible for update compatibility. Thanks for the help.

Link to comment
Share on other sites

There's a public variable you can access called vessel.situation I think, which returns whatever situation the vessel is in, such as Situations.LANDED - you can check for this in order to enable the "drill" action or whatever you intend to do.

Generally if a vessel is landed it's either in Situations.LANDED or Situations.PRELAUNCH if it's on the launchpad, or Situations.SPLASHED if it's in water.

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...