Difference between revisions of "NiExtraDataSetString"

Jump to navigation Jump to search
151 bytes added ,  14:26, 29 August 2010
no edit summary
imported>DragoonWraith
imported>DragoonWraith
 
 
'''Syntax'''
(bool:success) NifSetNthExtraDataStringNiExtraDataSetString string:NewValuenewValue short:ExtraDataIDnifID ''short:NifIDblockID''
(bool:success) NiEDSetStr string:newValue short:nifID ''short:blockID''
 
If <tt>blockID</tt> refers to a <tt>NiStringExtraData</tt>-derived block, sets the value of the block's string variable to <tt>newValue</tt>. Since <tt>NiNode</tt> does not derive from <tt>NiStringExtraData</tt> and <tt>blockID</tt> defaults to 0, or the NIF's root, this function will almost always require an explicit <tt>blockID</tt>.
Sets the value of a StringExtraData node to the specified value. If the specified ExtraData node is not a StringExtraData node, or if the process fails for any other reason, returns 0 and an error is reported to the console and NifSE.log.
 
== See Also ==
* [[NiExtraDataGetString]]
* [[NifGetNthExtraDataString]]
 
[[Category:NifSE|SetNthExtraDataStringExtraDataSetString]]
[[Category:NifSE (ExtraDataNiExtraData)|SetNthExtraDataStringSetString]]

Navigation menu