Difference between revisions of "NiExtraDataSetName"

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


'''Syntax'''
'''Syntax'''
  (bool:success) NifSetNthExtraDataName string:Name short:ExtraDataID short:NifID
  (bool:success) NiExtraDataSetName string:name short:nifID ''short:blockID''


Renames the specified ExtraData node of the specified nif.
Renames the <tt>NiExtraData</tt>-derived block indicated by <tt>blockID</tt>. As the NIF's root is usually a <tt>NiNode</tt>, that is, not a <tt>NiExtraData</tt>-derived class, the default value of <tt>blockID</tt>, 0, will not work.
 
== Note ==
* <tt>NiObjectNET</tt>-derived classes, <tt>NiNode</tt> included, ''do'' have names, but do not derive from <tt>NiExtraData</tt>. You must therefore use [[NiObjectNETSetName]] with those blocks.


== See Also ==
== See Also ==
* [[NifGetNthExtraDataName]]
* [[NiExtraDataGetName]]
* [[NifGetExtraDataIndexByName]]
 
* [[NiObjectNETGetName]]
* [[NiObjectNETSetName]]


[[Category:NifSE|SetNthExtraDataName]]
[[Category:NifSE|ExtraDataSetName]]
[[Category:NifSE (ExtraData)|SetNthExtraDataName]]
[[Category:NifSE (NiExtraData)|SetName]]

Latest revision as of 14:22, 29 August 2010

This is a command from NifSE.

Syntax

(bool:success) NiExtraDataSetName string:name short:nifID short:blockID

Renames the NiExtraData-derived block indicated by blockID. As the NIF's root is usually a NiNode, that is, not a NiExtraData-derived class, the default value of blockID, 0, will not work.

Note[edit | edit source]

  • NiObjectNET-derived classes, NiNode included, do have names, but do not derive from NiExtraData. You must therefore use NiObjectNETSetName with those blocks.

See Also[edit | edit source]