Jump to content

Script to force a texture swap


Rorax

Recommended Posts

I would like to write a script for my mod which detects if a model is using a diffuse texture on one part of the model and then forces a matching diffuse texture to another part of the model.

In particular. I would like the script to detect if the player is using a custom face detail and then replace the body diffuse with the companion body texture.

I'm not sure of the first thing about Fallout 4 scripts or even if I can "get" face morph details.

Help?

Thank you <3

-Rorax

Link to comment
Share on other sites

I don't know to what degree this will help, but when I was making my vampire mod I did used a script like to replace eyes upon transformation.

 

Game.GetPlayer().ChangeHeadPart(HeadPartName)

 

This line swaps a given headpart to a different one. Hope this helps.

Link to comment
Share on other sites

I don't know to what degree this will help, but when I was making my vampire mod I did used a script like to replace eyes upon transformation.

 

Game.GetPlayer().ChangeHeadPart(HeadPartName)

 

This line swaps a given headpart to a different one. Hope this helps.

 

Thats a really helpful start, Thank you.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...