Difference between revisions of "NiSourceTextureSetExternalTexture"

Jump to navigation Jump to search
no edit summary
imported>DragoonWraith
m (NifSetNthChildBaseTexture moved to NiSourceTextureSetExternalTexture: new name for function as of alpha 5.)
imported>DragoonWraith
 
'''Syntax'''
(bool:success) NifSetNthChildBaseTextureNiSourceTextureSetExternalTexture string:FilePathfilePath short:ChildIDnifID ''short:NifIDblockID''
(bool:success) NiSrcTexSetExtTex string:filePath short:nifID ''short:blockID''
 
Sets the filetexture pathused ofby the Base<tt>NiSourceTexture</tt>-derived Textureblock ofindicated theby specified Child of the root<tt>blockID</tt> to the specifiedtexture file pathfound at <tt>filePath</tt>. FileThe path<tt>filePath</tt> mustargument beis relative to <tt>Oblivion\DataTextures\</tt>,. '''notThe <tt>Oblivion\Data\Textures\blockID</tt>''' -argument thisdefaults followsto [[NifGetNthChildBaseTexture]].0, Ifwhich theis Childusually hasthe noNIF's Baseroot Texture<tt>NiNode</tt>, ornot noa NiTexturingProperty<tt>NiSourceTexture</tt>, orand thetherefore processthis failsfunction forwill anyalmost otheralways reason,require aan 0explicit is<tt>blockID</tt>. returned;Returns otherwise1 theif returnsuccessful, is0 1on failure.
 
== See Also ==
* [[NiSourceTextureGetFile]]
* [[NifNthChildHasTexturingProp]]
* [[NifNthChildHasBaseTexture]]
* [[NifGetNthChildBaseTexture]]
 
[[Category:NifSE|SetNthChildBaseTextureSourceTextureSetExternalTexture]]
[[Category:NifSE (ChildrenNiSourceTexture)|SetNthChildBaseTextureSetExternalTexture]]

Navigation menu