Raised This Month: $ Target: $400
 0% 

Ham_TakeDamage


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Spunky
Senior Member
Join Date: May 2008
Location: Orlando, Fl.
Old 03-16-2009 , 10:45   Ham_TakeDamage
Reply With Quote #1

What's the difference between the inflictor_id and attacker_id arguments when hooking? Which should you use to detect if an entity is behind the damage?

Would I use:
Code:
if (inflictor_id == find_ent_by_class(-1, "trigger_hurt"))

or:
Code:
if (attacker_id == find_ent_by_class(-1, "trigger_hurt"))

And I'm also not sure about find_ent_by_class, is that an accurate use of it?

Last edited by Spunky; 03-16-2009 at 10:47.
Spunky is offline
Send a message via AIM to Spunky
 



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 09:00.


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