Skip to content

[Memhack] Point

DasKeifer edited this page Sep 30, 2026 · 3 revisions

Memhack Point

The Memhack Point struct represents the Point object used by the game. From what I can tell, its just an x & y value

It has the standard memhack base struct functions/fields.

Table of Contents

Data

Field Type Offset Description
x int 0x0 The x coordinate
y int 0x4 The y coordinate

Data Functions

These are functions that draw from the data in the struct or set the data in the struct

Argument name Type Description
values table or memhack point or native point Table of field names to values, another Point struct, or a native Point object

Sets the x & y together to the passed values

Example:

p:set({x = -1, y = -1})
p2:set(Point(3,5))
p3:set(p)

getX

  • int Point:getX()

Returns the x coordinate

setX

  • void Point:setX(value)
Argument name Type Description
value int The new x value

Sets the x coordinate

getY

  • int Point:getY()

Returns the y coordinate

setY

  • void Point:setY(value)
Argument name Type Description
value int The new y value

Sets the y coordinate

Clone this wiki locally