NiSourceTextureSetExternalTexture

From the Oblivion ConstructionSet Wiki
Revision as of 13:58, 29 August 2010 by imported>DragoonWraith (NifSetNthChildBaseTexture moved to NiSourceTextureSetExternalTexture: new name for function as of alpha 5.)
Jump to navigation Jump to search

This is a command from NifSE.

Syntax

(bool:success) NifSetNthChildBaseTexture string:FilePath short:ChildID short:NifID

Sets the file path of the Base Texture of the specified Child of the root to the specified file path. File path must be relative to Oblivion\Data\, not Oblivion\Data\Textures\ - this follows NifGetNthChildBaseTexture. If the Child has no Base Texture, or no NiTexturingProperty, or the process fails for any other reason, a 0 is returned; otherwise the return is 1.

See Also