Polyobj_OR_MoveTo

From ZDoom Wiki
Jump to: navigation, search

89:Polyobj_OR_MoveTo (po, speed, pos_x, pos_y)

(New from 2.5.0)

Moves a polyobject in a straight line towards an absolute destination.

  • po: polyobj to stop
  • speed: how quickly the polyobject should move, in map units per octic.
  • pos_x: the absolute X coordinate to which the polyobject must move.
  • pos_y: the absolute Y coordinate to which the polyobject must 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

Personal tools
Namespaces
Variants
Actions
Navigation
ACS
DECORATE
ZDoom mods
Toolbox