SwapTextureEx
Revision as of 12:54, 20 May 2016 by imported>Jazzisparis (Created page with "{{Function |origin = JIP |summary = Similar to the vanilla function SwapTextureOnRef - swaps a texture used by a particular '''Nif Block''' on the specified object refer...")
< [[::Category:Functions|Category:Functions]]
A function added by the JIP NVSE Plugin.
Description
Similar to the vanilla function SwapTextureOnRef - swaps a texture used by a particular Nif Block on the specified object reference. However, unlike the vanilla version, which only allows swapping the main texture (diffuse map), this function allows swapping any of the six possible texture layers.
This function takes the same parameters as the vanilla version, with one extra parameter for specifying the texture slot index (0-5). Both versions are otherwise functionally identical.
Syntax
SwapTextureEx objectRef:ref nifBlockName:string texturePath:string texSlotIndex:int{0-5}
Example
SwapTextureEx objectRef "SodaBottle01:0" "clutter\junk\SodaBottleClosed01_n" 1
Notes
- Please also refer to the documentation of SwapTextureOnRef.