Solved Help with get_photon

Status
Not open for further replies.

zxcDelix

Platinian
Original poster
Feb 12, 2023
41
5
8
24
Ukraine
Please help me with get_photon, I don’t know what field to enter there instead of what was in the code, help me figure it out, I will be very grateful.

Code:
static void *get_photon(void *player) {
    return *(void **)((uint64_t) player + 0xAC);
}
 

zxcDelix

Platinian
Original poster
Feb 12, 2023
41
5
8
24
Ukraine
What are you trying to do? You can't return a void.
To be honest, I don’t know what it is, but it is used in my code, here is an example:
Code:
if (IsLocal(get_photon(player))) {
            myPlayer = player;
        }
This is also used in the code for esp.
 

zxcDelix

Platinian
Original poster
Feb 12, 2023
41
5
8
24
Ukraine
He's returning a pointer (void*) not a void lol


I don't know what the the other functions do. But get_photon returns the value of a field with an offset of 0xAC in your class
Got it, thank you very much.

Solved
 

DaRealPanDa

Co-Administrator
Staff member
Supporting-Team
Global Moderator
Social Media
Mar 12, 2018
6,771
15,625
2,120
27
Skyrim
Thread will be set to "solved" and closed.
When you're not happy with that just send me a message and i will re-open the thread for you.

Thanks.
 
Status
Not open for further replies.