Polyobj_DoorSwing
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
7:Polyobj_DoorSwing (po, speed, angle, delay)
By default, the polyobj rotates in a counter-clockwise direction.
Using this function in ACS, or when using UDMF, you can reverse that direction by supplying a negative value to the speed parameter.
See Also
External links
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.