SetPosEx

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

Sets the XYZ position of the calling object reference. This function sets the position on all three axes, and is faster than calling SetPos for each axis, individually. It also ignores the FormType limitations imposed on SetPos.

  • If the 4th, optional argument, translate, is non-zero, instead of flat-setting the object's position, the function will move the object to the specified XYZ point, relative to its current position and local rotation.

Syntax

[help]
reference.SetPosEx posX:float posY:float posZ:float translate:0/1

Example

objectRef.SetPosEx 2340 7650 970
objectRef.SetPosEx 128 0 0 1

Moves the object 128 units along its local (+)X axis.

See Also