AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Entity taking damage (https://forums.alliedmods.net/showthread.php?t=307010)

maqi 04-22-2018 15:48

Entity taking damage
 
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 04-22-2018 16:16

Re: Entity taking damage
 
I found a solution, thanks a lot Artick.

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


All times are GMT -4. The time now is 04:39.

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