Solved Infinite health on multiple objects

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat


Game Developer
Meme Tier VIP
Fleep Tier Donator
Jul 27, 2016
Hi everyone,
I'm trying to set infinite health on all my units in Age of Empires II.

The problem is that every unit has his own health address.
So, what is the best approach in this scenario when I have too many units (75+) and I want to all of them have infinite health.

Thanks in advance.


Cesspool Admin
Jan 21, 2014
Does every unit have a different health offset? Or all the same health offset?

If they have the same health offset you would:
find the "Entity list" aka all the unit objects in the game via, and this would give you the address of all the units, then you would add the offset and set it to 9999 or whatever continuously.

You could also find the instruction that reduces their health and NOP it or modify it someway.

You could also hook this instruction/function and make it NOT reduce the health only when the unit is from your faction/team

You could also, a bit more complicated is probably hook the virtual function that decreases health if all the objects with health are derived from the same class

If all the units have different health offsets then you have a bit more work to do
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Similar threads

Community Mods