Jump to content

I'm trying to work around a bug


Recommended Posts

I've made an alternate texture for a part that has a flag.  The texture change works but the flag is messed up,  it has the part texture.  If you select a flag it displays correctly until change the texture.  Even if you reapply the texture it is messed up again when you launch.  I am trying to get the game to reselect the current flag automatically after the texture is changed,  hopefully it will also work after loading for launch.  How do we know what the module objects are called for writing a plugin?  The Part module is accessible as part,  what is FlagDecal accessible as?

Link to comment
Share on other sites

So I think you can get the flags on a part using partModuleInstance.part.Modules.GetModules<FlagDecal>. This returns a list of FlagDecals, which you can then go through and do whatever you need to with them. UpdateFlagTexture looks like it might work, but I've never worked with it before. 

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