Jump to content

Refreshing/Updating/Reloading/Spawning Portraits


Recommended Posts

I'm working on a transporter room mod, and while I can beam someone from the world into my modified Mk1 Lander Can testing pod, their portrait won't register until I switch off the vessel and back. I've tried setting the Kerbal in question's state to Alive, turning their SetVisibleInPortrait to true, using the SpawnPortrait, StartReset, Awake, and Update functions of KerbalPortraitGallery, all to no avail. I have a listener KSPField for whoever's occupying the pod, and it'll register the Kerbal as in the pod, so I know that the Kerbal has made it into the part.protoModuleCrew[0] slot, for what it's worth. I know that *something* must be happening when the vessel switches back and forth that causes the KerbalPortraitGallery to repopulate, but for the life of me I can't seem to figure out what it is, or how to activate/call it after a teleportation. Does anyone with a better knowledge of how the KerbalPortraitGallery operates, or what all occurs on switching to a vessel, be willing to explain to me where I need to do what and how to make this "do"?

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