Skip to content

GXEntityPos

boxgaming edited this page Dec 7, 2021 · 1 revision

Position the entity at the specified x and y pixel coordinates.

Syntax

GXEntityPos entityId%, dx%, dy%

Parameters

  • Entity to position is specified by the entityId% parameter. This id is returned by the GXEntityCreate function or can be accessed by its user id by the GX function.
  • The horizontal pixel position is specified by the x% parameter.
  • The vertical position is specified by the y% parameter.

Examples

Example1: Position the entity at pixel coordinate (100, 75).

GXEntityPos warhog, 100, 75

See Also

GXEntityCreate GXEntityMove GXEntityX GXEntityY GX

Clone this wiki locally