Opcode Database

Latest Forum Activity

GTAG - Modding - Opcode Database - 0851

Opcode Database

0851

DescriptionDecreases 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)
Gamessa
CategoryActor
Command Name (IV)DAMAGE_CHAR
San Andreas
sascm.ini0851=3,damage_char %1d% amount %2h% damage_armour %3h%
Example0851: damage_char $PLAYER_ACTOR amount 10 damage_armour 1
Command NameDAMAGE_CHAR

<< 0850

0852 >>