# Sandbox.Component.IDamageable.Health

```csharp
float Health { get; set; }
```

Current health, for others to read and restore. Set it to heal. To hurt, deal damage through
`M:Sandbox.Component.IDamageable.OnDamage(Sandbox.DamageInfo@)` instead: setting this raises no damage events. Clamping, and what happens at
zero, are the implementer's business. Reads 0 and ignores writes unless the implementer provides it.

A class's own `public float Health { get; set; }` implements this implicitly. Accessors bind one
by one and nothing warns when they do not. With a public getter but a private, protected, internal or
missing setter, reads work and writes are dropped. A property of another type or name, a field, a
static or a non-public property does not bind at all, and this reads 0. A subclass does not bind what
it adds to a base that already implements [Sandbox.Component.IDamageable](/api/Sandbox.Component.IDamageable), unless it lists the interface
again. Such a class implements this member explicitly.

Declared in [Sandbox.Component.IDamageable](/api/Sandbox.Component.IDamageable).
Assembly: `Sandbox.Engine`.
