Quote:
Originally Posted by Stars
-Starting a function when damage is taken
|
register_event("Damage", "hook_Damage", "be", "2>0");
Quote:
Originally Posted by Stars
-Knowing Damage taken
|
The 2nd argument of the damage message you are hooking above.
Quote:
Originally Posted by Stars
-Pauses in code (wait 1 second)
|
set_task(1.0, "function_to_start");
Quote:
Originally Posted by Stars
-Knowing current hp
|
new health = pev(id, pev_health);