|
Author
|
Message
|
|
Senior Member
|

08-10-2011
, 07:04
Re: How to get a entity(NPC) health?
|
#1
|
Quote:
Originally Posted by hornet
Your not supposed to bump your thread unless its been longer than 2 weeks.
Hud Message:
PHP Code:
set_hudmessage( 255, 255, 255); show_hudmessage( 0, "Entity health is %i", floatround( entity_get_float( ent, EV_FL_health ) ) );
If you want to change the position and effects then use the rest of the parametres.
Chat Message:
PHP Code:
client_print( 0, print_chat, "Entity health is %i", floatround( entity_get_float( ent, EV_FL_health ) ) );
|
sorry i forgot the rule
btw, thanks all
|
|
|
|