GTAG - Modding - Opcode Database - 0851
Opcode Database
0851
| Description | Decreases the characters health. If the "damage_armour" flag is set to 1, the characters armour is also damaged if the character has any. If not, only the health is affected. |
|---|---|
| Parameters (v2) | 1) Actor handle (Integer) (INT) 2) Integer (INT) 3) Boolean (1 or 0) (INT) |
| Games | |
| Category | Actor |
| Command Name (IV) | DAMAGE_CHAR |
| San Andreas | |
| sascm.ini | 0851=3,damage_char %1d% amount %2h% damage_armour %3h% |
| Example | 0851: damage_char $PLAYER_ACTOR amount 10 damage_armour 1 |
| Command Name | DAMAGE_CHAR |

