DAMAGE CHAR
Jump to navigation
Jump to search
Number of parameters: 3 | ||
---|---|---|
Parameter # | Type | Description |
1. | Handle | Ped Handle |
2. | uint | hit_points |
3. | bool(?) | unknown |
Return value: | ||
Type | Description | |
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);
}