Skip to content

[Memhack] UnknownObj1

DasKeifer edited this page Feb 11, 2026 · 2 revisions

Memhack UnknownObj1

The Memhack UnknownObj1 struct represents an unknown game object that contains the perfect island reward pilot. It does not have a vtable so I could not data mine a name for it hence the name "unknown"

It has the standard memhack base struct functions/fields.

Table of Contents

Data

Field Type Offset Description
perfectIslandRewardPilot pointer (Pilot) 0x280 Pointer to the pilot rewarded for perfect island

Data Functions

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

getPerfectIslandRewardPilot

  • Pilot UnknownObj1:getPerfectIslandRewardPilot()

Returns the Pilot struct for the pilot rewarded for completing a perfect island.

Example:

local game = Game:GetMemhackObj()
local obj = game:getUnknownObj1()
if obj then
    local pilot = obj:getPerfectIslandRewardPilot()
    if pilot then
        LOG("Perfect island reward pilot: " .. pilot:getName())
    end
end

getPerfectIslandRewardPilotPtr

  • int UnknownObj1:getPerfectIslandRewardPilotPtr()

Returns the raw pointer to the perfect island reward pilot. Returns 0 if not available.

Example:

local ptr = obj:getPerfectIslandRewardPilotPtr()
if ptr ~= 0 then
    LOG(string.format("Reward pilot at: 0x%X", ptr))
end

Clone this wiki locally