NifWriteToDisk

From the Oblivion ConstructionSet Wiki
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). This function can and will overwrite models already found at that location.

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.