[Memhack] Board - Redacted-Rice/ITB-RedactedRiceExts GitHub Wiki

Memhack Board

The Memhack Board struct represents the game's Board when in a mission

It has the standard memhack base struct functions/fields.

Table of Contents

Data

Field Type Offset Description
podLandingLoc [Point ](/Redacted-Rice/ITB-RedactedRiceExts/wiki/[Memhack]-Point) 0x2D70 The point a time pod will land if one spawns (set even if no pod spawns)

Data Functions

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

getPodLandingLoc

  • [memhack] Point Board:getPodLandingLoc()

Returns the Point the pod will land (if one spawns) as a memhack Point object

Example:

local board = Board:GetMemhackObj()
local podLanding = board:getPodLandingLoc()
LOG("Pod landing (memhack Point): " .. tostring(podLanding))

getPodLandingAsPoint

  • [Native] Point Board:getPodLandingAsPoint()

Returns the Point the pod will land (if one spawns) as a native Point object as typically used in the Lua scripts.

Example:

local podLanding = Board:GetMemhackObj():getPodLandingAsPoint()
LOG("If a pod spawns it will land at point " .. tostring(podLanding))

SetPodLandingLoc

  • void Board:setPodLandingLoc(pointOrTable)
Argument name Type Description
value table or memhack [Point ](/Redacted-Rice/ITB-RedactedRiceExts/wiki/[Memhack]-point) or native point The pod landing location info

Sets the pods landing location to the passed point so that if it spawns it will land there

Example:

Board:GetMemhackObj():setPodLandingLoc(Point(7,7))
LOG("If a pod spawns it will land in the bottom left corner")