Polyobj MoveTo

From Eternity Wiki
Revision as of 13:16, 28 February 2026 by Printz (talk | contribs) (Created page with "{{template:LineSpecial|description=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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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).

See also