Entity Damage

Hello, I am trying to make this tree entity damaged and then disappear when health at 0. I’m just having a hard time doing this. I have the idea that it is Entity.SetHealth, I did try putting it in ENT:Initialize, but it didn’t work for me. I will post my codes if needed, but I can’t see this requiring that since it’s a basic entity.

I did of coarse tried searching around and reading the wikis for help.
Thanks for your time.

In the ENT initialise, put self:SetHealth( integer ), then, in ENT:TakeDamage, remove it if the health is 0

Oh perfect thank you I wasn’t even looking into ENT:Take damage. I knew there would be another part to it, just wasn’t sure what it was called.