Polyobj_OR_MoveToSpot

From ZDoom Wiki
Jump to navigation Jump to search

59:Polyobj_OR_MoveToSpot (po, speed, target)


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.

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