NifWriteToDisk

From the Oblivion ConstructionSet Wiki
Revision as of 12:04, 14 May 2011 by imported>DragoonWraith (New page: This is a command from NifSE. <div id="catlinks" style="width: 90%; margin: 0.5em auto; border-style: solid;"><div style="float: left; margin: 5px 1em 5px 0.5em;">[[Im...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is a command from NifSE.

Syntax

(bool:success) NifWriteToDisk string:filepath short:nifID

Writes the (possibly edited) NIF to disk at the indicated location. The filepath is relative to the Data\Meshes\ folder. Do not write use this to write a NIF to the ni\ temporary directory. Especially do not pass the result of NifGetPath to this function, or else no further changes to the NIF will ever appear (as Oblivion will see the version you wrote to the disk and never look for NifSE's virtual version).

The purpose of this function is to allow you to inspect the NIF in NifSkope or similar, so you can double-check that everything is being affected as you want it to. The file may be deleted manually after you have inspected it.