Jump to content

How to get exact biome


Recommended Posts

I'm nearly there with my science module plugin, i just need this last bit. In order to prevent some level of cheating I need to detect what display biome an experiment was performed in.

I saw the post on the biome names. I need to be able to filter the vessel position based on whether it's flying, landed, or orbiting. How can I detect those states?

Link to comment
Share on other sites

Getting biome name.

As for the situation, you can check vessel.landed for landed, and if that returns false, you can check vessel.mainbody.atmosphere, if that returns false, you are orbiting, if it returns true, you can check to see if vessel.getStaticPressure > 1E-6 (this is where atmospheres cut off). If true, you are flying, else, orbiting.

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