Jump to content

Scripted Material Swaps


vizex1

Recommended Posts

No one ever answered my previous topic.

Is it just that no one knows how to do material swaps via script?

Or no one really knows much about it?

Or maybe its buggy?

 

Don't read my previous topic, it's long. I just wanna know how to do a material swap via script, if anyone does know how.

Edited by vizex1
Link to comment
Share on other sites

Thanks for confirming. I decided to mess around with it a little more and it worked. It seems to not work in some instances though. Or maybe my coding was off. But I managed to get a working version.

 

For anyone wondering the basic code is this:

MatSwap Swap1  = Game.GetFormFromFile(0x01234567, "Game.esp") as MatSwap
ApplyMaterialSwap(Swap1) 

https://www.creationkit.com/fallout4/index.php?title=GetFormFromFile_-_Game

Edited by vizex1
Link to comment
Share on other sites

Cool. I asked this myself befor but got no reply. was curious about scripted material swaps for dlc locations and even more so, region specific. Mostly regarding foliage.

You should search on creationkit.com.

Also, matswaps on foliage will not work if the foliage in question is part of a cell's precombines.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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