Difference between revisions of "NiExtraDataGetName"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
m (NifGetNthExtraDataName moved to NiExtraDataGetName: new name for function as of alpha 5.)
imported>DragoonWraith
Line 2: Line 2:


'''Syntax'''
'''Syntax'''
  (string:Name) NifGetNthExtraDataName short:ExtraDataID short:NifID
  (string:name) NiExtraDataGetName short:nifID ''short:blockID''
(string:name) NiEDGetName short:nifID ''short:blockID''


Returns the name of the specified ExtraData node of the specified nif.
If the block specified by <tt>blockID</tt> is of a <tt>NiExtraData</tt>-derived class, returns the block's name. Note that <tt>NiNode</tt> blocks, such as the Nif's root, are '''not''' derived from <tt>NiExtraData</tt>, and so when <tt>blockID</tt> defaults to 0 (the root), this function will fail. <tt>NiNode</tt> blocks, as with all <tt>NiObjectNET</tt>-derived blocks, do have names, but you must use [[NiObjectNETGetName]] to get it.


== See Also ==
== See Also ==
* [[NifSetNthExtraDataName]]
* [[NiExtraDataSetName]]
* [[NifGetExtraDataIndexByName]]
* [[NiObjectNETGetExtraDataByName]]


[[Category:NifSE|GetNthExtraDataName]]
[[Category:NifSE|ExtraDataGetName]]
[[Category:NifSE (ExtraData)|GetNthExtraDataName]]
[[Category:NifSE (NiExtraData)|GetName]]

Revision as of 13:09, 29 August 2010

This is a command from NifSE.

Syntax

(string:name) NiExtraDataGetName short:nifID short:blockID
(string:name) NiEDGetName short:nifID short:blockID

If the block specified by blockID is of a NiExtraData-derived class, returns the block's name. Note that NiNode blocks, such as the Nif's root, are not derived from NiExtraData, and so when blockID defaults to 0 (the root), this function will fail. NiNode blocks, as with all NiObjectNET-derived blocks, do have names, but you must use NiObjectNETGetName to get it.

See Also