Jump to content

[SOLVED]Spawn IVA


Recommended Posts

I'm trying to change CrewCapacity when a deploy event takes place on an inflatable crew module. To do this, in the OnStart method I'm checking a bool, then depending on the value the CrewCapacity is updated to 0 or 6, and then despawns or spawns and IVA. The despawning works fine, but when using part.SpawnIVA() nothing happens. It's puzzling, because when looking through the assembly code it seems to only check for CrewCapacity <= 0 then it creates the IVA. Any thoughts?

EDIT: So, after an hour or so of trying I decided to post this question, and then like five minutes later I figured it out. Just bypass part.SpawnIVA() for part.CreateInternalModel()

Edited by Bonus Eventus
solved it
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...