Polyobj_DoorSwing

From ZDoom Wiki
Revision as of 21:20, 17 July 2008 by Gez (talk | contribs)
Jump to navigation Jump to search

7:Polyobj_DoorSwing (po, speed, angle, delay)


Rotates a polyobject, waits, and then rotates it in the opposite direction until it has returned to its original orientation.

po: polyobj to move 
speed: how quickly to spin the polyobj 
angle: byte angle to rotate the polyobj through 
delay: delay in tics before returning to original orientation 

By default, the polyobj rotates in a counter-clockwise direction. Using this function in ACS, you can reverse that direction by supplying a negative value to the speed parameter.

See Also

PolyObjects