Enables / disables an entity's ability to receive damage.
This command does not prevent the entity from taking scripted damage from commands such as setDamage, setHit, setHitIndex or setHitPointDamage.
Note
This command only supports entities (Entity is a child class of Object, i.e. all entities are objects, but not all objects are entities).
Consequently, there are objects that are not affected by this command, for example terrain vegetation such as trees.
except for buildings that are native to the map; for those, the effects of HandleDamage will not sync properly across all clients, even if added to the building on every client and the server.