Raised This Month: $ Target: $400
 0% 

Solved pev(ent, pev_health) return 0.0


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 07-17-2018 , 14:19   Re: pev(ent, pev_health) return 0.0
Reply With Quote #3

Quote:
Originally Posted by hzqst View Post
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(victiminflictorattackerFloat:dmgdamagebtis
EDIT: OK, it work now. Used pev wrong way
PHP Code:
public fw_Object_TakeDamage(VictimInflictorAttackerFloat:DamageDamageBits)
{
    static 
Float:Healthpev(Victimpev_healthHealth)
    
client_print(Attackerprint_chat"Ent: %i"Victim)
    
client_print(Attackerprint_chat"Ent HP: %.f"Health)

__________________
My plugin:

Last edited by Celena Luna; 07-17-2018 at 14:26.
Celena Luna is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:47.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode