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

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 ](/Redacted-Rice/ITB-RedactedRiceExts/wiki/[memhack]-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