Difference between revisions of "NiExtraDataGetString"

Jump to navigation Jump to search
313 bytes added ,  13:14, 29 August 2010
no edit summary
imported>DragoonWraith
m (NifGetNthExtraDataString moved to NiExtraDataGetString: new name for function as of alpha 5.)
imported>DragoonWraith
 
'''Syntax'''
(string:Valuevalue) NifGetNthExtraDataStringNiExtraDataGetString short:ExtraDataIDnifID ''short:NifIDblockID''
 
If the block indicated by <tt>blockID</tt> is of a <tt>NiStringExtraData</tt>-derived class, returns the block's string value. Because <tt>blockID</tt> defaults to 0, which is usually the NIF's root, a <tt>NiNode</tt>, <tt>blockID</tt> must almost always be specified when using this function (a NIF with a <tt>NiStringExtraData</tt> as the root node would almost certainly not work correctly).
Returns the value stored in a StringExtraData node. If the specified ExtraData node is not a String, returns an empty string.
 
Returns <tt>" "</tt> if the function fails for whatever reason.
 
== See Also ==
* [[NiExtraDataSetString]]
* [[NifSetNthExtraDataString]]
 
[[Category:NifSE|GetNthExtraDataStringExtraDataGetString]]
[[Category:NifSE (ExtraDataNiExtraData)|GetNthExtraDataStringGetString]]

Navigation menu