[Memhack] Board Functions - Redacted-Rice/ITB-RedactedRiceExts GitHub Wiki
Added Board Functions
This page describes functions added to the Board class by memhack.
Table of Contents
GetMemhackObj
BoardBoard:GetMemhackObj()
Returns a memhack Board struct for the Board object. This provides access to board level memory (e.g. pod landing location). Generally not needed outside of the Board functions implemented here.
Example:
local board = Board:GetMemhackObj()
GetPodLandingPoint
PointBoard:GetPodLandingPoint()
Returns the Point the pod will land (if one spawns)
Example:
local podLanding = Board:GetPodLandingPoint()
LOG("If a pod spawns it will land at point " .. tostring(podLanding))
SetPodLandingPoint
voidBoard:SetPodLandingPoint(point)
| Argument name | Type | Description |
|---|---|---|
point |
Point | Native Point userdata for where a pod should land if one spawns |
Sets the pod landing location so that if a pod spawns it will land there. Internally calls Board:GetMemhackObj():setPodLandingLoc(point).
Example:
Board:SetPodLandingPoint(Point(7,7))
LOG("If a pod spawns it will land in the bottom left corner")