No. Pointers aren't bidirectional, and depending on how the game was written, a pointer path from somewhere in the unit structure to the building might not exist. (you could try a pointer scan to verify this)
I guess you could try a pointer scan for the unit, but doing that constantly would be ridiculous.
It would be more reasonable to find the container that holds the buildings and iterate over them searching for the unit. _________________
I don't know where I'm going, but I'll figure it out when I get there.
Thats exactly what i will do. Just make a loop that gets all units and then another loop that checks for the building im looking for that is contained in the unit.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum