vizex1 Posted August 29, 2019 Share Posted August 29, 2019 (edited) 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 August 29, 2019 by vizex1 Link to comment Share on other sites More sharing options...
pra Posted August 29, 2019 Share Posted August 29, 2019 It can be done, but only with F4SE:https://www.creationkit.com/fallout4/index.php?title=ApplyMaterialSwap_-_ObjectReference Link to comment Share on other sites More sharing options...
vizex1 Posted August 29, 2019 Author Share Posted August 29, 2019 (edited) 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 August 29, 2019 by vizex1 Link to comment Share on other sites More sharing options...
Deleted49413338User Posted August 31, 2019 Share Posted August 31, 2019 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. Link to comment Share on other sites More sharing options...
pra Posted August 31, 2019 Share Posted August 31, 2019 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 More sharing options...
Recommended Posts