SetAngleEx

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

Modifies the XYZ rotation angles (in degrees) of the calling reference. This function sets the angles of all three axes, and is faster (and possibly less glitchy) than calling SetAngle for each axis, individually.

  • The 4th argument, method, is optional, and can be used for specifying how the rotation is modified:
0	(Default) Set the EXTRINSIC (global) rotation.
1	Set the INTRINSIC (local) rotation.
2	Rotate the INTRINSIC (local) rotation by the specified XYZ values.
3	Rotate the EXTRINSIC (global) rotation by the specified XYZ values.
4	Set the EXTRINSIC (global) rotation, such that the reference will face the specified XYZ (given as COORDINATES - not angles!).

Syntax

[help]
reference.SetAngleEx angleX:float angleY:float angleZ:float method:int{0-4}

Example

objectRef.SetAngleEx 34.5 0 126.7
objectRef.SetAngleEx 0 90 0 2 

See Also