SwapTextureEx

From GECK
Jump to: navigation, search


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

[help]
SwapTextureEx objectRef:ref nifBlockName:string texturePath:string texSlotIndex:int{0-5}

Example

SwapTextureEx objectRef "SodaBottle01:0" "clutter\junk\SodaBottleClosed01_n" 1 

Notes