I'm trying to figure out how to read the currently targeted mob/npc/player/structure's health values. My knowledge in reading memory/ASM is horrible and am learning as I go so any help would be appreciated!
atm to find the health values I do a search for the following pattern:
Code:
0x4 [2C 00 00 00]
0x4 [?? ?? ?? ??]
0x4 [84 32 56 01]
0x4 [?? ?? ?? ??] timer of some sort, maybe objects lifetime
0x4 [?? ?? ?? ??] current health, float
0x4 [?? ?? ?? ??] maximum health, float
0x4 [?? ?? ?? 44] attributes of some sort. players tend to end with 44 while out of combat
I have gotten as far as printing out a list of all npc/object/player and their health values on the current map but don't know how to tie it with the currently targeted object and pick the values I'm interested in. How would I find a place in memory that identifies which model/object is selected?
The end goal is to have an overlay that will print current and max health values of currently selected target right over the gw2's health bar.
Thanks!