NiAVObjectSetLocalTranslation
Revision as of 12:21, 21 January 2011 by imported>DragoonWraith
This is a command from NifSE.
Syntax
(bool:success) NiAVObjectSetLocalTranslation array_var:translation short:nifID short:blockID (bool:success) NiAVObjSetLocTransl array_var:translation short:nifID short:blockID
Sets the local translation of the NiAVObject-derived block specified by blockID. The default value of blockID, 0, refers to the NIF's root, a NiNode, which is a NiAVObject-derived class. Thus, this function may be used without an explicit blockID when setting the root's local translation.
The passed array_var 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.