DAMAGE CHAR

From GTAMods Wiki
Jump to navigation Jump to search
DAMAGE_CHAR
Number of parameters: 3
Parameter #TypeDescription
1.HandlePed Handle
2.uinthit_points
3.bool(?)unknown
Return value:
TypeDescription
None

Description

Subtracts hit_points from the health of a ped.


Example

if(IsGameKeyboardKeyPressed(20))
	{
		//It doesn't matter if the last parameter is 0 or 1.
		//This may indicate that the last parameter is not of type bool
		//or that it isn't used in the function.
		DamageChar(niko, 20, 0);
	}