Help! How to mod Struct member ?

hienngocloveyou

Solid & Active Platinian
Original poster
May 16, 2021
61
7
8
38
VN
Hi Everyone,

The forum is sharing how to acces method return int,float,bool,etc data but I don't know how to access member in struct return.
For example I have method return ZoomParams is a struct. So how to access it's member ?

1621553350982.png


1621553401041.png


Thank for your reading !
 

hienngocloveyou

Solid & Active Platinian
Original poster
May 16, 2021
61
7
8
38
VN
I think that method will work as a pointer to the struct, if not then try to find an instance for the pointer to access that struct.
I know we can use pointer to access that struct and modify it's member but I don't know how to do it by code ?
Can you send me an example ?
 

hienngocloveyou

Solid & Active Platinian
Original poster
May 16, 2021
61
7
8
38
VN
And what u want to do ? I mean u want to look the struct ? And then ?
Yeah. I want to know how to define a struct then hook origin struct. and modify it's member (float height, slope,etc..) like this below post.
But the post below use for array hook.


Regards,