[Memhack] VictoryScreen - Redacted-Rice/ITB-RedactedRiceExts GitHub Wiki
Memhack VictoryScreen
The Memhack VictoryScreen struct represents the victory screen object that contains the pod reward pilot. I think maybe "Victory" here refers to winning a mission and not the whole game.
It has the standard memhack base struct functions/fields.
Table of Contents
Data
| Field | Type | Offset | Description |
|---|---|---|---|
| podRewardPilot | pointer ([Pilot ](/Redacted-Rice/ITB-RedactedRiceExts/wiki/[memhack]-Pilot)) | 0x404 | Pointer to the pilot found in a time pod |
Data Functions
These are functions that draw from the data in the struct or set the data in the struct
getPodRewardPilot
PilotVictoryScreen:getPodRewardPilot()
Returns the Pilot struct for the pilot found in a time pod.
Example:
local game = Game:GetMemhackObj()
local victoryScreen = game:getVictoryScreen()
if victoryScreen then
local pilot = victoryScreen:getPodRewardPilot()
if pilot then
LOG("Pod reward pilot: " .. pilot:getName())
end
end
getPodRewardPilotPtr
intVictoryScreen:getPodRewardPilotPtr()
Returns the raw pointer to the pod reward pilot. Returns 0 if not available.
Example:
local ptr = victoryScreen:getPodRewardPilotPtr()
if ptr ~= 0 then
LOG(string.format("Pod pilot at: 0x%X", ptr))
end