Jump to content

Determining if a Kerbal is conscious??


Recommended Posts

Looking for a way to tell if an EVA'd kerbal is conscious or not. I'm working on my own derivative of an EVA parachute and I don't want the Kerbal to be able to deploy it if he/she got knocked out exiting the ship.

While I'm at it, any way to force a kerbal to LET GO of the ladder/hatch?

Edited by tg626
Link to comment
Share on other sites

If you've already added a PartModule to the EVA part (male and female kerbals are seperate parts apparently, so keep that in mind) then you can just use vessel.evaController.isRagdoll

As for forcing the kerbal off the ladder, I assume a small force to push the kerbal off the ladder would suffice, but if you want more control, look into vessel.evaController.fsm. It's the animation/event engine for EVAs that allows you to run events like becoming ragdoll, jumping, or even letting go of a ladder. I suggest looking at the source code of the Follow Me mod. Even though the mod is from 0.25, the code still works though.

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