theblackpixel Posted September 14, 2019 Share Posted September 14, 2019 Is it possible to swap a general texture out for another one depending on if certain conditions are met?Say the player is swimming, would it be possible to replace all fire textures with a different one? Link to comment Share on other sites More sharing options...
maxarturo Posted September 14, 2019 Share Posted September 14, 2019 (edited) Yes it can be done with SKSE NetImmerse Script. SetNodeTextureSet(ObjectReference ref, String node, TextureSet tSet, Bool firstPerson) Your script should look something like this, example : Int Property CurrentTexture = 1 Auto Hidden ObjectReference Property MeshTC Auto {The mesh to changed the textureset} String Property NodeName Auto {The mesh's node name to change} TextureSet Property TexSet_01 Auto {First texture sets in the cycle} TextureSet Property TexSet_02 Auto {Second texture sets in the cycle} Event OnCellLoad() TexturesOnLoad() EndEvent Event ... some event If ... some condition If CurrentTexture == 1 NetImmerse.SetNodeTextureSet(MeshTC, NodeName, TexSet_02, True) EndIf EndIf EndEvent Function TexturesOnLoad() CurrentTexture == 1 NetImmerse.SetNodeTextureSet(MeshTC, NodeName, TexSet_01, True) EndFunction Edited September 14, 2019 by maxarturo Link to comment Share on other sites More sharing options...
theblackpixel Posted September 14, 2019 Author Share Posted September 14, 2019 (edited) This only changes a single mesh does it not? I would like to replace all fire textures only when the condition is met. Edited December 28, 2019 by theblackpixel Link to comment Share on other sites More sharing options...
maxarturo Posted September 14, 2019 Share Posted September 14, 2019 (edited) This was just an example of how the script should be, i posted it because there is nothing online to explain how SKSE NetImmerse Script should be written, or work. I had to experiment a lot with my script to get it to do what i wanted to. " This only changes a single mesh does it not? " It changes the texture set of the Mesh's NODE that the script is targeting. " I would like to replace all fire textures only when the condition is met. " This is entirely up to you and how you will make your script, what condition you'll make and when the Mesh Node texture set change should fire. * Again, this was just an example, so you can work on it an make your own script from it. Edited September 14, 2019 by maxarturo Link to comment Share on other sites More sharing options...
theblackpixel Posted September 14, 2019 Author Share Posted September 14, 2019 I appreciate the help, but I'll just have to look for simpler options, I'm way over my head in this, I have never made a NetImmerse Script. Link to comment Share on other sites More sharing options...
maxarturo Posted September 14, 2019 Share Posted September 14, 2019 A simpler version of your idea is to retexture and make a new object, and when you want the fire to change just disable the first and enable your retextured fire version. Link to comment Share on other sites More sharing options...
Recommended Posts