> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dotouch-emu.com/llms.txt
> Use this file to discover all available pages before exploring further.

# getLifePointsP

> Obtenir les Points de Vie actuels du personnage en pourcentage.

Obtenir les Points de Vie actuels du personnage en pourcentage.

#### 🎮 Méthode

```lua theme={null}
fightCharacter:getLifePointsP()
```

#### 💎 Valeur de retour

| Type  | Description                    |
| ----- | ------------------------------ |
| `int` | Pourcentage de PV (`0`–`100`). |

#### 💡 Exemple

```lua theme={null}
-- Soigner si les PV sont inférieurs à 50%
if fightCharacter:getLifePointsP() < 50 then
    local myCell = fightCharacter:getCellId()
    if fightAction:canCastSpellOnCell(myCell, 4947, myCell) == 0 then
        fightAction:castSpellOnCell(4947, myCell)  -- soin sur soi-même
    end
end
```
