WaygateSetDestination

Parameters
waygate unit
x real

map coordinate

y real

map coordinate

comment

Sets the teleporter's target.

The unit must have the 'Awrp' ability, otherwise does nothing.

note

If this ability is temporarily removed from the unit and readded later, the unit remembers the previously set target position.

note

The values are rounded to fit on a 64-based grid, offset by 32. (exact formula?)

Examples:

  • -65 => -96
  • -64 => -32
  • -63 => -32
  • -1 => -32
  • 0 and -0 => 32
  • 63 => 32
  • 64 => 96
note

See: WaygateIsActive, WaygateActivate, WaygateGetDestinationX, WaygateGetDestinationY.

patch

1.00

Source
common.j
return type
nothing
Source code
native WaygateSetDestination        takes unit waygate, real x, real y returns nothing