Difference between revisions of "NiAVObjectSetLocalTranslation"

Jump to navigation Jump to search
245 bytes removed ,  12:21, 21 January 2011
no edit summary
imported>DragoonWraith
m (→‎See Also: removing TEMP)
imported>DragoonWraith
 
 
'''Syntax'''
(bool:success) NiAVObjectSetLocalTranslationTEMPNiAVObjectSetLocalTranslation floatarray_var:x float:y float:ztranslation short:nifID ''short:blockID''
(bool:success) NiAVObjSetLocTranslTNiAVObjSetLocTransl floatarray_var:x float:y float:ztranslation short:nifID ''short:blockID''
 
Sets the local translation of the <tt>NiAVObject</tt>-derived block specified by <tt>blockID</tt>. The default value of <tt>blockID</tt>, 0, refers to the NIF's root, a <tt>NiNode</tt>, which is a <tt>NiAVObject</tt>-derived class. Thus, this function may be used without an explicit <tt>blockID</tt> when setting the root's local translation.
 
The passed <tt>array_var</tt> must be an Array (not a Map or StringMap) and must have exactly 3 numerical elements, corresponding to the x, y, and z axis translations, in that order.
== Notes ==
* Because OBSE Plug-Ins cannot currently accept arrays as arguments, <tt>NiAVObjectSetLocalTranslation</tt>, as it would properly exist, cannot be implemented. <tt>NiAVObjectSetLocalTranslationTEMP</tt> is provided as an alternative; it will be deprecated in favor of <tt>NiAVObjectSetLocalTranslation</tt> when OBSE adds the ability to take array arguments, but backwards compatibility will be maintained.
 
== See Also ==

Navigation menu