Jump to content

[request] display biome


BadLeo

Recommended Posts

It's not an actual request as much as it is a question. What line of code I should use to make the right-click menu on a command module to display the biome the craft is currently in, and where should I insert it?

Edited by BadLeo
Link to comment
Share on other sites

1 minute ago, BadLeo said:

It's not an actual request as much as it is a question. What line of code I should use to make the right-click menu on a command module to display the biome the craft is currently in, and where should I insert it?

Well if you aren't opposed,  KER shows you what biome you are in.  You may already know this and if that's the case then disregard this

Link to comment
Share on other sites

I think the stock ModuleGPS gives that info, along with lat and long.

If you just want the biome info:

ScienceUtil.GetExperimentBiome(body, lat, long);

with lat and long in degrees, I think.

Just make that string point to a [KSPField(guiactive = true)] string and it will show up in the right click menu.

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