Difference between revisions of "NiSourceTextureSetExternalTexture"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
imported>DragoonWraith
 
Line 8: Line 8:


== See Also ==
== See Also ==
* [[NiTexturingPropertyGetTextureSource]]
* [[NiSourceTextureIsExternal]]
* [[NiSourceTextureGetFile]]
* [[NiSourceTextureGetFile]]


[[Category:NifSE|SourceTextureSetExternalTexture]]
[[Category:NifSE|SourceTextureSetExternalTexture]]
[[Category:NifSE (NiSourceTexture)|SetExternalTexture]]
[[Category:NifSE (NiSourceTexture)|SetExternalTexture]]

Latest revision as of 13:42, 31 August 2010

This is a command from NifSE.

Syntax

(bool:success) NiSourceTextureSetExternalTexture string:filePath short:nifID short:blockID
(bool:success) NiSrcTexSetExtTex string:filePath short:nifID short:blockID

Sets the texture used by the NiSourceTexture-derived block indicated by blockID to the texture file found at filePath. The filePath argument is relative to Oblivion\Textures\. The blockID argument defaults to 0, which is usually the NIF's root NiNode, not a NiSourceTexture, and therefore this function will almost always require an explicit blockID. Returns 1 if successful, 0 on failure.

See Also[edit | edit source]