Check out our 2024 Retrospective for a look back at events that shaped the wiki during 2024.

Morrowind Mod:Rotate

The UESPWiki – Your source for The Elder Scrolls since 1995

Rotate
RotateWorld

		Rotate,      Axis, Angle/sec
		RotateWorld, Axis, Angle/sec

       Where: 	Axis 	  = The world or object axis to rotate about (X, Y, or Z).
		Angle/sec = The rotation speed to rotate the object (degrees per second).

	Type:	Movement

     Returns:	none

     Example:	Rotate, X, 0.5
		"Act_banner_Khuul"->RotateWorld, Z, 1

     Scripts:	float
		BarDoor

Rotates the object along the specified world (RotateWorld) or object (Rotate) axis at the specified number of degrees per second. To be used properly, the function should be called continuously while rotation is desired, for example:

begin test_RotateScript
	short RotatingItem

	if ( OnActivate == 1 )
		if ( RotatingItem == 0 )
			set RotatingItem to 1
		else
			set RotatingItem to 0
		endif
	endif

	if ( RotatingItem == 1 )
		RotateWorld, Z, 0.5
	endif
end

which should start rotating an object up when it is activated and stop when it is activated again.