Polyobj_DoorSwing

From ZDoom Wiki
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, or when using UDMF, you can reverse that direction by supplying a negative value to the speed parameter.

See Also

PolyObjects

External links