SetEntityHealth Function

Sets an entity's health

void SetEntityHealth(int entity, int amount)

Parameters

int entity

Entity index.

int amount

Health amount.

Errors

Invalid entity index, or lack of mod compliance.