Polyobj_OR_MoveToSpot

Moves a polyobject in a straight line towards a given destination.

  • po: polyobj to move
  • speed: how quickly the polyobject should move, in map units per octic.
  • target: the tid of the spot to which the polyobject should move.

59:Polyobj_OR_MoveToSpot (po, speed, target)

The “OR” in this special stands for OverRide. Under normal circumstances, if a polyobject is doing something, you cannot make it do something else until it has finished whatever it is doing. This can be a problem with perpetual polyobjs (such as Polyobj_RotateLeft or Polyobj_RotateRight with a byte angle of 255). Using one of the "OR" specials, you can force the polyobj to stop whatever it is doing and do something else.

See also

This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.