Quote:
Originally Posted by hzqst
Func_breakable won't be killed unless you remove it using FL_KILLME or map flags(kill after trigger)
It just disappears when strength goes to 0
|
Also, I just lazy to change the parameter.
It should be
PHP Code:
fw_Object_TakeDamage(victim, inflictor, attacker, Float:dmg, damagebtis)
EDIT: OK, it work now. Used pev wrong way
PHP Code:
public fw_Object_TakeDamage(Victim, Inflictor, Attacker, Float:Damage, DamageBits)
{
static Float:Health; pev(Victim, pev_health, Health)
client_print(Attacker, print_chat, "Ent: %i", Victim)
client_print(Attacker, print_chat, "Ent HP: %.f", Health)
}
__________________