BaseEntity healthSolved

How change entity helth

Instances of BaseCombatEntity have health. If the entity is such, you can cast it to BaseCombatEntity, then operate on its health. If you are obtaining a reference to the entity from a hook call, you can replace the parameter type with a subclass such as BaseCombatEntity to only have the hook called for that subclass.

Locked automatically