Polyobj MoveTo
From Eternity Wiki
Jump to navigationJump to search
Description
This is a parameterized linedef special.
Moves a polyobject to given coordinates.
Usage
Polyobj_MoveTo(po, speed, x, y)
Parameters
- po: polyobject ID to move
- speed: movement speed in eighths of unit per tic
- x, y: coordinates, in integer map units
Examples
Polyobj_MoveTo(1, 8, -1024, 4192)
Notes
This linedef special moves the targeted polyobject to a given location in coordinates, instead of using a map spot thing. Be careful, if in ACS, not to use fixed-point numbers (which internally are multiples of 65536).
The linedef special identification is 88 (UDMF) or 497 (ExtraData).