Difference between revisions of "NifWriteToDisk"

Jump to navigation Jump to search
82 bytes added ,  14:42, 15 May 2011
no edit summary
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...)
 
imported>DragoonWraith
 
Line 9: Line 9:
  (bool:success) NifWriteToDisk string:filepath short:nifID
  (bool:success) NifWriteToDisk string:filepath short:nifID


Writes the (possibly edited) NIF to disk at the indicated location. The <tt>filepath</tt> is relative to the <tt>Data\Meshes\</tt> folder. '''Do not write use this to write a NIF to the <tt>ni\</tt> 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).
Writes the (possibly edited) NIF to disk at the indicated location. The <tt>filepath</tt> is relative to the <tt>Data\Meshes\</tt> folder. '''Do not write use this to write a NIF to the <tt>ni\</tt> 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.
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.


[[Category:NifSE]]
[[Category:NifSE]]

Navigation menu