Raised This Month: $ Target: $400
 0% 

Solved Trigger Ham_Killed from Ham_TakeDamage


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 04-22-2016 , 12:04   Re: [HELP] Trigger Ham_Killed from Ham_TakeDamage
Reply With Quote #6

PHP Code:
ExecuteHamB(Ham_TakeDamagei0pev(entpev_owner), float(GRENADE_DAMAGE), DMG_BULLET
it's about the third parameter, which is 0 here. That's the inflictor, or the entity that caused damage. For guns, it's same as the player, but for other entities (like grenades), it's the entity itself.

What you could do is create an entity with your desired classname before you execute TakeDamage, and input its index in that 3rd param, and then remove that entity afterwards.
klippy 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 18:37.


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