DAMAGE CHAR

From GTAMods Wiki
Revision as of 13:00, 8 January 2015 by Cpp (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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);
	}