Raised This Month: $12 Target: $400
 3% 

Entity taking damage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
maqi
Senior Member
Join Date: Apr 2017
Location: Serbia
Old 04-22-2018 , 15:48   Entity taking damage
Reply With Quote #1

Hey guys,
So, im trying to detect an entity taking damage ( https://forums.alliedmods.net/showthread.php?p=221113 this plugins lasermine entity in this case )

I can't seem to detect it in any way. I tried registering Ham_TakeDamage ( With the class "lasermine' of course, also tried "func_breakable" ) Nothing happens.

And yes, the lasermine can be destroyed and has pev_takedamage set to DAMAGE_YES as well as pev_health.

I just can't seem to detect that event, I mainly want to check for the team of the attacker in order to block it if i see fit )

Thanks in advance
maqi is offline
maqi
Senior Member
Join Date: Apr 2017
Location: Serbia
Old 04-22-2018 , 16:16   Re: Entity taking damage
Reply With Quote #2

I found a solution, thanks a lot Artick.

( I can't search for a classname "lasermine" in ham "func_breakable" is the solution )

Last edited by maqi; 04-22-2018 at 16:17.
maqi is offline
Reply


Thread Tools
Display Modes

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 10:50.


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