Jump to content

How to add regular parts actions to EVA?


Recommended Posts

Hello everyone.

I'm relatively new to modding KSP. So far I've only created some tweaked regular parts(like a multi-size docking port made of the stock ones or a modified KAS parts that can be plugged to a wall, etc), so what I'm asking for is probably easily done somehow, but I simply haven't found a way to do it yet.

The question here: what should I do if I were to add more actions to EVA right-click menu on a part? Like "repack chute", but for example applied to "activate engine" or "toggle gear"? Is there a way to do this to stock parts, or would it require digging into some plugin/module files? Could someone post a short guide here for me?

Thanks in advance

Link to comment
Share on other sites

Haven't tried it myself, but KSPEvent offers a bunch of parameters, including some that appear to be EVA related. Try sth like this (add your other params as well, ofc):


[KSPEvent(externalToEVAOnly = true, unfocusedRange = 5)]
private void MyFunctionThatCanBeActivatedViaEVA(){
// code...
}

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