Posted: Sun May 03, 2020 10:30 pm Post subject: List of addresses of currently selected units in a rts
Everytime i select a unit i have this address that points to
that unit health. So i can get the health of each unit i select
separately. Which is great.
But when i select more than 1 unit. For example i select 3 or 4.
I have no idea how to search for the group, or the addresses of the units that are included in that group.
However when i select the group. The address that points
to the health of unit, gives me the health of just 1 of the units
that are inside that group.
I have no idea what i can do to search for the group, even though
i have the addresses of all the units in the group that i selected.
Is there a way to search for a group of addresses that should be together?
Should i look inside the unit a reference to another unit (seems
unreliable).
Would try and see which insturction accesses the address that holds current selected unit health, afterwards check if the same instruction accesses other addresses when selected 2 or more units, if it doesnt examine nearby to see any 'suspicious' code. _________________
I'm rusty and getting older, help me re-learn lua.
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